File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resizing Widgets in Frame" Watch "Resizing Widgets in Frame" New topic

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:
subject: Resizing Widgets in Frame
It's not a secret anymore!