United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4499556 Use arbitrary (J)Components as JTabbedPane tab labels.
JDK-4499556 : Use arbitrary (J)Components as JTabbedPane tab labels.

Details
Type:
Enhancement
Submit Date:
2001-09-04
Status:
Resolved
Updated Date:
2005-11-21
Project Name:
JDK
Resolved Date:
2005-04-13
Component:
client-libs
OS:
windows_nt,solaris_2.5.1,generic,windows_xp,windows_95,windows_2000
Sub-Component:
javax.swing
CPU:
x86,sparc,generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
1.1.8,1.2.0,1.2.1,1.2.2,1.4.0,1.4.1,6u3
Fixed Versions:

Related Reports
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:

Sub Tasks

Description

Name: boT120536			Date: 09/04/2001


java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

It would be useful to be able to use an arbitrary Component as the label for
JTabbedPane's tabs. This way, for instance, it would be possible to have a text
label and close button on each tab.

A good example of what I envision is demonstrated in the "tabbed mode" of the
Galeon web browser at http://galeon.sourceforge.net. There, you can be browsing
several pages independently of one another, with a row of tabs along the top,
one for each such session, like a JTabbedPane with a bunch of JTextPanes would
look. Each tab in Galeon, however, has a label and a close button (a little X),
which, when clicked, closes that tab -- even if that tab isn't the currently
focused tab.
(Review ID: 131277) 
======================================================================

                                    

Comments
EVALUATION

This is a good idea.  Looking into it for tiger.
###@###.### 2001-11-12
                                     
2001-11-12
WORK AROUND



Name: boT120536			Date: 09/04/2001


Reimplement or hack JTabbedPane to support this feature.
======================================================================
                                     
2004-09-30



Hardware and Software, Engineered to Work Together