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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
JPanels and JInternalFrames
Difference between JFrame and JPanel
removing a painted component via paintComponent leaves a residue
Checkbox and JPanel
Frame & panel