[Patch] BasicLookAndFeel

Michael Koch konqueror@gmx.de
Tue Feb 22 14:08:00 GMT 2005


Hi list,


I jsut merged the attached patch under the "obvious"-rule. It fixes the
border for Swing buttons.


Michael


2005-02-22  Roman Kennke <roman@ontographics.com>

	* javax/swing/plaf/basic/BasicLookAndFeel.java
	(initComponentDefaults): Fixed Button left and right margin.

-------------- next part --------------
Index: javax/swing/plaf/basic/BasicLookAndFeel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicLookAndFeel.java,v
retrieving revision 1.12
diff -u -r1.12 BasicLookAndFeel.java
--- javax/swing/plaf/basic/BasicLookAndFeel.java	30 Nov 2004 23:59:04 -0000	1.12
+++ javax/swing/plaf/basic/BasicLookAndFeel.java	22 Feb 2005 12:15:26 -0000
@@ -255,7 +255,7 @@
       "Button.foreground", new ColorUIResource(Color.black),
       "Button.highlight", new ColorUIResource(Color.white),
       "Button.light", new ColorUIResource(Color.lightGray.brighter()),
-      "Button.margin", new InsetsUIResource(2, 14, 2, 14),
+      "Button.margin", new InsetsUIResource(2, 2, 2, 2),
       "Button.shadow", new ColorUIResource(Color.gray),
       "Button.textIconGap", new Integer(4),
       "Button.textShiftOffset", new Integer(0),


More information about the Java-patches mailing list