File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "panel sizing problem" Watch "panel sizing problem" New topic

panel sizing problem

neelam aggarwal

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

Joined: Oct 16, 2003
Posts: 1101

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...

Nam Ha
Ranch Hand

Joined: Aug 05, 2011
Posts: 50

Try to use:

Java Object Creation
I agree. Here's the link:
subject: panel sizing problem
It's not a secret anymore!