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
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Resizing Widgets in Frame
 
Similar Threads
Frame & panel
Difference between JFrame and JPanel
removing a painted component via paintComponent leaves a residue
JPanels and JInternalFrames
Checkbox and JPanel