Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help suggest a proper layout manager for my form

 
Kurt Harless
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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: 925 Kbytes
[Download LAYOUT1.bmp] Download Attachment
 
K. Tsang
Bartender
Posts: 3524
16
Android Java
  • Mark post as helpful
  • send pies
  • 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.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic