Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizing Widgets in Frame

 
Karen Baog
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

If I have a JFrame, and a JPanel added, what Window ActionListener do I use so I can resize the JPanel (x *and* y) when the Window is resized?

Cheers, everyone!
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Karen,



Hope that helps
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops, you didn't want to resize the frame itself...I'm sure, you can adjust the code to resize a panel ;-)

By the way, did you check the layout managers ?

Hope that helps,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic