It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes How to represent JPanels in a JPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to represent JPanels in a JPanel" Watch "How to represent JPanels in a JPanel" New topic
Author

How to represent JPanels in a JPanel

partha phukan
Ranch Hand

Joined: Mar 13, 2011
Posts: 31
Sir/madam..., i have a problem regarding how to use JPanels inside one JPanel. i have two JPanel (panel1, panel2). I have used JSplitPane and divide them horizontally into two sides.

Now in Jpanel(panel1), i need to display another three JPanels(panel3, panel4,panel5). Now what layout should i follow..? i have tried to use Border Layout and JSplitPane but not succeeded. I need to divide them equally. What layout should i use please give me some suggestion....

Thank you in advance.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Equally divided usually warrants a GridLayout.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to represent JPanels in a JPanel
 
Similar Threads
more tabbedpane - panel questions
Simple JPanel question....
Help suggest a proper layout manager for my form
What is the best way to create GUI components- in-line, methods, inner classes or separate classes
Help sorting out what combination of layouts will provide the result I need