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

Observer and Observable

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590

I'd like to see the topPanel to resize once the JFrame is resized. How can I achieve this?
Why
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2233
    
  47
Jacky Luk wrote:
I'd like to see the topPanel to resize once the JFrame is resized. How can I achieve this?

Use a layout manager. Layout managers can seem a little confusing at first but once you get the hang of them they make coding GUI's so much easier.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Observer and Observable