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)
======================================================================
|