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 Observer and Observable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 601

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: 2339
    
  50
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