JDK-4220177 : labels within JTabbedPane tabs should be alignable
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.8,1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-03-13
  • Updated: 2001-11-13
  • Resolved: 2001-11-13
Related Reports
Duplicate :  
Description

Name: dbT83986			Date: 03/13/99


It would be nice to be able to align the tabs of a JTabbedPane.

Right now it is possible to set the orientation of the tabs,
but there is no way to specify that I want the tabs aligned on
the right/bottom side or the center instead of the left/top side.
(Review ID: 54774)
======================================================================

Name: rlT66838			Date: 08/27/99


I admit this is minor, but a JTabbedPane with tabs placed on the 
left or right would look better if the tab labels could be left 
or right justified.

In BasicTabbedPaneUI.layoutLabel(), SwingUtilities.layoutCompoundLabel()
is called with a hard coded parameter of SwingUtilities.CENTER for the 
horizontal text alignment.  This would be easy to convert into a property.
(Review ID: 94542)
======================================================================

Comments
WORK AROUND Name: dbT83986 Date: 03/13/99 NA ======================================================================
11-06-2004

EVALUATION There seems to be two separate requests in this rfe: 1) In addition to allowing specification of tab placement (top/left/bottom/right), also allow specification of alignment within that placement. This is already implemented via the componentOrientation property. To align tabs to right, try: tabbedpane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); 2) The second requests seems to be requesting the ability to specify the alignment of the text within EACH tab, which I agree is a valid request. amy.fowler@Eng 2000-03-15 Since part one is solved via setComponentOrientation I am closing this bug as a duplicate of 4499556. Please look there for further information. ###@###.### 2001-11-13
15-03-2000