Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Overlapping tabs in Windows XP LAF

 
Greenhorn
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
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic