LayoutManager Best Choice
I'm not all that familiar with the different layout managers right now so I'm hoping someone can point out the best manager for my situation:
I have 3 areas that will be on the form:
-- JEditorPane (1)
-- JPanel (2)
-- JLabel (3)
They are arranged as follows:
-----------------------
|###|############|
|###|############|
| (2) |####(1)######|
|###|############|
|###|############|
|____|_______________|
|________(3)_________|
The JLabel is at the bottom of the form and is 20 pixels high and as wide as the form.
The JPanel is 50 pixels wide and as tall as the form, minus the 20 pixels for the JLabel.
The JEditorPane is as wide as the form allows (but of course right next to the JPanel) and as wide as the form will allow.
Right now I just wrote a component listener that detects resizing and does everything for me but if you have ever quickly resized a form that is using this method, you get a nasty black area before the items resize themselves correctly.
If you know of a layout manager that will allow me to do all of this or a way to remove the nasty black area when using a component listener, I would appreciate your response.