File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem of adding panel to another panel

 
Nouf Nassri
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> the panel displays without scrollpane with a very large size.

sounds like you need to give the scrollpane a preferredSize
 
Nouf Nassri
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic