File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Problem with JTabbedPane header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with JTabbedPane header" Watch "Problem with JTabbedPane header" New topic

Problem with JTabbedPane header

Angel Arcos

Joined: Jun 07, 2010
Posts: 1
Hi all, i'm a frequent user of the forum but this is the first time i have not found a solution to the problem i'm dealing with.
Ii'm working on an application with a JTabbedPane that should look like this:

So far i have overwritten BasicTabbedpaneUI to give my own panel the desired effects in tabs and i have also extended JTabbedPane class to add the logo image behind the tabs. Now my tabbedpane looks like:

The worst part is trying to add other panel in the header of the JtabbedPane, the panel with the red border in the first image. I thought something like using a GlassPane to show the elements in the outer pane, but due to my app requirements it should be in the same component...

Anyone has an idea of how to solve this problem? Any guidelines would be appreciated.

Thanks in advance!

I agree. Here's the link:
subject: Problem with JTabbedPane header
It's not a secret anymore!