Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4499556
Votes 43
Synopsis Use arbitrary (J)Components as JTabbedPane tab labels.
Category java:classes_swing
Reported Against 1.2 , 1.4 , 1.1.8 , 1.2.1 , 1.2.2 , 1.4.1 , 1.2rc2 , 1.2beta3 , 1.2beta4 , merlin-rc1 , swing1.0.2 , merlin-beta2
Release Fixed mustang(b32)
State 10-Fix Delivered, request for enhancement
Priority: 5-Very Low
Related Bugs 6259533 , 4140211 , 4152025 , 4220177 , 4261420 , 4318509 , 4465870 , 4620537 , 6632934 , 4708614 , 4870636
Submit Date 04-SEP-2001
Description




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  customer  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) 
======================================================================
Work Around




Reimplement or hack JTabbedPane to support this feature.
======================================================================
Evaluation
This is a good idea.  Looking into it for tiger.
  xxxxx@xxxxx   2001-11-12
Comments
  
  Include a link with my name & email   

Submitted On 12-JUN-2002
Petey
Should provide GUI support for AbstractButton functionality,
e.g. rollover icon, selected icon


Submitted On 18-APR-2005
uncleHohoho
Looks like it is fixed in the latest mustang build.  Excellent!!



PLEASE NOTE: JDK6 is formerly known as Project Mustang