Which layout manager?
Which layout manager should I use for such a layout? Tried some of them but I can't get them like I want.
|Lab||Lab|
____
| | || | |
|B| | Text | |B|
|a| | area | |a|
|r| || |r|
|_| |__| |_|
__
|Btn| |Text fld| |Btn|
(Btn=button, Lab=Label btw)
[318 byte] By [
Lombraa] at [2007-11-26 21:59:37]

# 2
Ok, thanks. I tried that and I guess that's the best solution. However I have some panels where I'd like to have a FlowLayout, how should I do?
This didn't work
JPanel p = new JPanel();
p.setLayout(new FlowLayout());
add(p);
p.add(c1);
p.add(c2);
add(c3);
add(c4);
c3.setBounds(<bounds>);
c4.setBounds(<bounds>);
it simply wouldn't display the components in the panel.
Also, text areas or text fields seem to take up the entire workspace even though I correctly set bounds for them (also tried w/ and w/o character/row arguments)
# 3
> use setBounds() will be easy
There is no need to use a null layout. That is the wrong approach.
One way would be to start with a "main" panel using a BorderLayout.
Create a "westPanel" that also has a BorderLayout and add it to the West of the main panel. Then you add the label, bar and button to the North, Center, and South.
Do the same for the Center and East panels.