• Post Reply Bookmark Topic Watch Topic
  • New Topic

Collapse borders for embedded JTabbedPane  RSS feed

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See screen shot of embedded panes
http://www.picoodle.com/view.php?img=/9/10/3/f_tabbedPanesm_f578fb3.jpg&srv=img03

How do I collapse the border lines into a single line?

Here's the code for above example.


[ October 03, 2007: Message edited by: Chu Tan ]
[ October 03, 2007: Message edited by: Chu Tan ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand 'border lines'

if you mean all the tabs on one line,
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This image shows a similar concept, except that the outer tabs is on the right side.



If you look at my screenshot, I'd like to eliminate the multiple lines on the left/right/bottom.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see if this gets you any closer

you may need to tweak 'paintContentBorderTopEdge' if you want them the same width
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the following:
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!