[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: BasicTabbedPaneUI
From: |
David Gilbert |
Subject: |
[cp-patches] FYI: BasicTabbedPaneUI |
Date: |
Mon, 03 Oct 2005 11:17:30 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050728) |
This simple patch (committed) fixes the alignment of the icon and text on the tab
for a JTabbedPane, a problem that shows up in the JUnit Swing-based TestRunner:
2005-10-03 David Gilbert <address@hidden>
* javax/swing/plaf/basic/BasicTabbedPaneUI.java
(layoutLabel): place text to the right of the icon, if there is one.
Regards,
Dave
Index: javax/swing/plaf/basic/BasicTabbedPaneUI.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,v
retrieving revision 1.26
diff -u -r1.26 BasicTabbedPaneUI.java
--- javax/swing/plaf/basic/BasicTabbedPaneUI.java 30 Sep 2005 17:56:34
-0000 1.26
+++ javax/swing/plaf/basic/BasicTabbedPaneUI.java 3 Oct 2005 10:11:43
-0000
@@ -1859,7 +1859,7 @@
SwingConstants.CENTER,
SwingConstants.CENTER,
SwingConstants.CENTER,
- SwingConstants.CENTER, tabRect,
+ SwingConstants.RIGHT, tabRect,
iconRect, textRect, textIconGap);
int shiftX = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: BasicTabbedPaneUI,
David Gilbert <=