This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes make all components visble, when jframe size changed horizontally or vertically 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 "make all components visble, when jframe size changed horizontally or vertically" Watch "make all components visble, when jframe size changed horizontally or vertically" New topic
Author

make all components visble, when jframe size changed horizontally or vertically

Satchin Vanir
Greenhorn

Joined: Jul 17, 2012
Posts: 4
Hi

I have developed user interface in swing with two panels, lower panel and upper panel, both uses FormLayout and used BorderLayout to add these panels to JFrame.
When the JFrame size is changed horizontally or vertically some components are not visible in JFrame going out.

Please help how to minimize the size of all the components to make visble, when JFrame size is changed.

Many thanks in advance.
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Any code to demonstrate the issue?

My suggestion would be to use GridBagLayout whenever possible, since it is perhaps the most flexible regarding the container resizing.


The quieter you are, the more you are able to hear.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Satchin Vanir wrote:both uses FormLayout

No such class in the standard JDK. Where did you get it, and is it adequately tested and documented?


luck, db
There are no new questions, but there may be new answers.
Satchin Vanir
Greenhorn

Joined: Jul 17, 2012
Posts: 4
Darryl Burke wrote:
Satchin Vanir wrote:both uses FormLayout

No such class in the standard JDK. Where did you get it, and is it adequately tested and documented?


I have used the below classes from "forms-1.2.1.jar"

com.jgoodies.forms.layout.FormLayout
com.jgoodies.forms.builder.PanelBuilder
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

JGoodies isn't Swing / AWT / SWT. Do they have any forum or support area?

Alternatively, why not use one of the many layouts in the Swing/AWT API, or a combination of nested layouts?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: make all components visble, when jframe size changed horizontally or vertically
 
Similar Threads
how to add a scrollpane...
How to create this GUI
null layout issue..........
Regarding status bar resizing
ToolTipText