• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Satchin Vanir
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Satchin Vanir
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic