• 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

Help suggest a proper layout manager for my form

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings,

Ok I have experimented with BORDERLAYOUT, GRIDBAGLAYOUT, and BOXLAYOUT and can't get a mental grip on the proper layout or layouts to use to create a form with the following components;

See attached desired look.

Not looking for someone to code it, just get me started.

My Guess would be some outer layout manager that splits the frame in half vertically.
The upper half would then be a layout manager that splits the frame horizontally, approximately 2/3 and 1/3
The lower half would be a layout manager that again splits the frame vertically, but not the upper half is 90% and the lower half is 10%

Does that make sense?

Any suggested approaches?

Kurt
Filename: LAYOUT1.bmp
Description: Sample form
File size: 947 Kbytes
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kurt, it looks to me you have a heck of an app coming.

Anyway if I were you, I would use BorderLayout for the main window. 2 JPanels (top and bottom) and set them to BorderLayout.NORTH or CENTER and BorderLayout.SOUTH.

From there ... top JPanel layout to BorderLayout - table CENTER, radio EAST. Bottom JPanel BorderLayout CENTER and SOUTH.

You see BorderLayout can do it all HAHA. Now how the JPanels interact also have some impact on the layout. Hope this helps.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
might be a lot easier using JSplitPanes.

you can remove the dividers, and set it up so that on any (frame) resize the proportions remain the same
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic