Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does Swing JTabbedPane add scroll when there are too many tabs opened?  RSS feed

 
ying lam
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does Swing JTabbedPane add scroll when there are too many tabs opened?
like in Mozilla Firefox, when I add a lot of tabs, a Left,Right arrow shows up so that I can navigate thru tabs.
Can you please tell me if Swing JTabbedPane have the same effect?

Thank you.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tabbedPane.setTabLayoutPolicy(..)
also refer to the JTabbedPane constructors
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't you dare write a for loop to add a lot of tabs to a tabbedpane and test this out. Don't you do it!! Don't....you....do....it.... Agh! Ok, go ahead. But I warn you. If you do, you'll answer your own question. Ok, I warned you. Don't say I didn't. Don't come back here with an answer and say no one told you!!

;)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!