Adding two different layouts

Hi.

I wanted to add two different layouts to each others.

One will be part of the other

1st - GridBagLayout

- JTextField

- Label

will be part of

2nd - BorderLayout

- Toolbar ( PAGE_START )

- 1st layout ( CENTER )

- OK button ( PAGE_END )

What should be the 1st layout (how to add as a component) to a 2nd. Should the 1st return sth? How to connect them?

[427 byte] By [Lukasz_1981a] at [2007-11-27 0:23:53]
# 1
> What should be the 1st layout (how to add as a component) to a 2nd. Create a JPanel with whatever layout you want to use. Add your components to the panel, then add the panel to the content panel Center.
camickra at 2007-7-11 22:20:02 > top of Java-index,Desktop,Core GUI APIs...
# 2
Hi,1. Create JPanel_1 with GridBagLayout and add components to it.2. Create another JPanel_2 with BorderLayout and add components to including the JPanel_1 which u created earlier.3. Then add the second JPanel_2 to the FrameHope this helps..Zulfi
szulfi_alia at 2007-7-11 22:20:02 > top of Java-index,Desktop,Core GUI APIs...