• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to represent JPanels in a JPanel

 
partha phukan
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Equally divided usually warrants a GridLayout.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic