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

Overlapping tabs in Windows XP LAF  RSS feed

Bob Novak
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTabbedPane with 3 tabs. Given the space allowed for the tabs, the first tabbed (titled Data Layers) is in front and the other 2 (Map Layers and Legend) are in back when the first displayed.

The problem is that the highlighting for the selected tab in the Windows XP LAF is an orange bar that increases the height of the front tab and obscures the text of the tabs in the "back". Selecting one of them, brings that tab run to the front with the same problem.

I took a look at JTabbedPane and did not find anything in the API to help; a look at the BasicTabbedPaneUI looks like it will lead to complications - it would be nice to have a simple solution.

I have also tried to adjust the preferred heights of the panel that contains the JTabbedPane (uses borderlayout and center placement) and the preferred size of the JTabbedPane itself to no avail. Is this the right approach? If so, I will pursue it further - but I was looking for some way to set the heights of the tabs or the area that the tabs occupy...

This is in an applet running with the 1.4.2 plugin under IE 6.0.

Any ideas would be appreciated. Thanks
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!