Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem of adding panel to another panel  RSS feed

 
Nouf Nassri
Ranch Hand
Posts: 40
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!