aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 1075
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: panel sizing problem
 
Similar Threads
Adding Scrolling Functionality to Button
Adjusting textarea size to window
making resizable components?
settiing size of Jpanel
How do I change size of JTextArea