Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adding JTabbedPane to JPanel  RSS feed

 
thanvi janu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hello all,

Can i add a JTabbedPane to JPanel, and add that JPanel to another JPanel?
if i add so, it seems to like a list.

My task is:
1. panel1 should contain some components
2. panel2 should contain some components along with tabs
3. panel2 should be added to panel1.


Thanks in advance,
thanvi
 
Rob Spoor
Sheriff
Posts: 21092
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it? If you do, you will see that if you use the right layout manager(s), you can basically do almost anything you want with components.
 
thanvi janu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr.Rob,

Yes, It was the problem of Layout.
But if i add any component inside the tabbedPane, then it is visible else it is still seems to be looking like a list.


Thanks in advance,
thanvi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!