JDK-4499556 : Use arbitrary (J)Components as JTabbedPane tab labels.
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version:
    1.1.8,1.2.0,1.2.1,1.2.2,1.4.0,1.4.1,6u3 1.1.8,1.2.0,1.2.1,1.2.2,1.4.0,1.4.1,6u3
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_2.5.1,windows_95,windows_nt,windows_2000,windows_xp generic,solaris_2.5.1,windows_95,windows_nt,windows_2000,windows_xp
  • CPU: generic,x86,sparc
  • Submitted: 2001-09-04
  • Updated: 2017-05-16
  • Resolved: 2005-04-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b32Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
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
WORK AROUND Name: boT120536 Date: 09/04/2001 Reimplement or hack JTabbedPane to support this feature. ======================================================================
2004-09-30

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