jQuery in Action, 2nd edition*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2158
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Observer and Observable
 
Similar Threads
My first time trying to make a simple tile-based java game
Output image file and displaying it on screen
How to identify the drop location?
A JPanel doesn't extend fully in a BorderLayout
How come JFXPanel doesn't show up?