-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
1.4.1
-
x86
-
windows_nt
Name: jk109818 Date: 05/28/2003
A DESCRIPTION OF THE REQUEST :
An option to have a close(x) button on a tabbed pane would be very useful.
JUSTIFICATION :
Applications which we develop require for tabs to be added at runtime. Also the relevance of these data is not for the entire lifetime of the application.
Plus, when a dynamic addition and removal is allowed programmatically, a button allowing the user to do the same should also be available.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There should be a close button (x-button) on the top right corner of each tab, which should preferably have a mouseover highlight and which when on clicking should cause the tab to close.
ACTUAL -
No such functionality is presently available.
CUSTOMER SUBMITTED WORKAROUND :
Presently I have subclassed the JTabbedPane class and overridden paint() and installed my own EventListener to handle mouse over property changes.
(Review ID: 186259)
======================================================================
- duplicates
-
JDK-4499556 Use arbitrary (J)Components as JTabbedPane tab labels.
-
- Resolved
-