• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Overlapping tabs in Windows XP LAF

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic