File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes problem of adding panel to another panel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem of adding panel to another panel " Watch "problem of adding panel to another panel " New topic
Author

problem of adding panel to another panel

Nouf Nassri
Ranch Hand

Joined: Apr 22, 2010
Posts: 40

hello everyone,

I like to add panel1 to another panel extends JFrame but the problem when I add a panel1 to panel , the panel displays without scrollpane with a very large size.

panel1:


Frame:



Thank you very much.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> the panel displays without scrollpane with a very large size.

sounds like you need to give the scrollpane a preferredSize
Nouf Nassri
Ranch Hand

Joined: Apr 22, 2010
Posts: 40
thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem of adding panel to another panel