• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic