This is fixed now.
2005-10-03 Lillian Angel <[EMAIL PROTECTED]>
* javax/swing/JMenuItem.java
(init): Set horizontalTextPosition to TRAILING, instead of
LEFT. Icons are drawn in the correct spot now.
On Mon, 2005-10-03 at 09:34 -0400, Lillian Angel wrote:
> > I can look into this, but it surely has nothing to do with the
> > BoxLayout. The icons were drawn wrong since we draw them at all. I think
> > they are laid out in SwingUtilities.layoutCompoundLabel, so either that
> > one is wrong or the call to this method is wrong (more likely).
>
>
> The icons were drawn fine as of friday morning. Friday afternoon they
> were drawn in the wrong spot. SwingUtilities was not changed in that
> time.
>
> Its something else then.
>
> Lillian
>
>
>
> _______________________________________________
> Classpath-patches mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/classpath-patches
Index: javax/swing/JMenuItem.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JMenuItem.java,v
retrieving revision 1.20
diff -u -r1.20 JMenuItem.java
--- javax/swing/JMenuItem.java 30 Sep 2005 19:13:23 -0000 1.20
+++ javax/swing/JMenuItem.java 3 Oct 2005 14:04:15 -0000
@@ -178,7 +178,7 @@
//borderPainted = false;
focusPainted = false;
horizontalAlignment = JButton.LEFT;
- horizontalTextPosition = JButton.LEFT;
+ horizontalTextPosition = JButton.TRAILING;
}
/**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches