Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes panel sizing problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "panel sizing problem" Watch "panel sizing problem" New topic
Author

panel sizing problem

neelam aggarwal
Greenhorn

Joined: Jul 18, 2011
Posts: 19
hey guys....... in net beans ,,,the size of the panel automatically enlarges ... i tried many times to reduce the size then save it but again it displays enlarged form ....... what i do........... also the size of preview window enlarges automatically....... what's the error.. do i need to make some of the properties to change.. if so which one.......please help
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

Where do you add the Panel to? what is the layout of the parent? I think the parent to which you add the panel is set with BorderLayout and by default the panel will be added to the 'CENTER' which will occupy maximum space available...


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Nam Ha
Ranch Hand

Joined: Aug 05, 2011
Posts: 50

Try to use:



Java Object Creation
 
jQuery in Action, 2nd edition
 
subject: panel sizing problem
 
Similar Threads
settiing size of Jpanel
How do I change size of JTextArea
Adding Scrolling Functionality to Button
Adjusting textarea size to window
making resizable components?