aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Resizing Widgets in Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resizing Widgets in Frame" Watch "Resizing Widgets in Frame" New topic
Author

Resizing Widgets in Frame

Karen Baog
Ranch Hand

Joined: Mar 02, 2005
Posts: 120
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!


amerzil co-ed student<br />"Praise be the Code"
Lionel Badiou
Ranch Hand

Joined: Jan 06, 2005
Posts: 140
Hello Karen,



Hope that helps


Lionel Badiou
CodeFutures Software
Lionel Badiou
Ranch Hand

Joined: Jan 06, 2005
Posts: 140
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,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resizing Widgets in Frame