How to create Two panels in a Content Pane or within a Panel?

How to create Two panels in a Content Pane or within a Panel.

What I am trying to do is "Creating nested frames". In HTML, we will create it by using FrameSet.

I went through the creation of panels, but I am not getting which Layout Manager should be used in order to get the exact look and feel of the page, which is created by using HTML Frameset.

[369 byte] By [Vencya] at [2007-11-27 1:26:20]
# 1
hi supose there is a main panel......panel1and panel 2.mainpanel consists of other two.u have to put border layout and put borderlayout.north or south accordingly.oksee the java.sun.com
Dharmendra.jspa at 2007-7-12 0:20:46 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi

If we use Border Layout, the Panels which are added to the main panel are not displaying properly.

Solution is to use BoxLayout with AXIS parameter. Statement looks like this:

mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout(PAGE_AXIS));

Thank You for giving Reply,

Vencya at 2007-7-12 0:20:46 > top of Java-index,Desktop,Core GUI APIs...
# 3
Use BoxLayout to solve the Problem.After Creating Main panel, set the Layout as follows:" mainPanel.setLayout(new BoxLayout(mainp,BoxLayout.PAGE_AXIS));
Vencya at 2007-7-12 0:20:46 > top of Java-index,Desktop,Core GUI APIs...
# 4
I have done in border layout.ok
Dharmendra.jspa at 2007-7-12 0:20:46 > top of Java-index,Desktop,Core GUI APIs...
# 5
can someone say me in a panel I have 6labels and 6 textfields and two save cancel button and I need to put an browse button side of a textfield which layout i need to put.I already put border layout but the last one overlaps.plz say me ...................
Dharmendra.jspa at 2007-7-12 0:20:46 > top of Java-index,Desktop,Core GUI APIs...