[Patch] javax.swing.plaf.basic merged

Michael Koch konqueror@gmx.de
Sat Oct 16 16:01:00 GMT 2004


Hi list,


I just merged the attached patch from GNU classpath.


Michael


2004-10-16  Jeroen Frijters  <jeroen@frijters.net>

	* javax/swing/plaf/basic/BasicToolBarUI.java
	(offset, regular): Made final.
	* javax/swing/plaf/basic/BasicScrollBarUI.java
	(DECREASE_HIGHLIGHT, INCREASE_HIGHLIGHT, NO_HIGHLIGHT,
	POSITIVE_SCROLL, NEGATIVE_SCROLL): Made final.

-------------- next part --------------
Index: javax/swing/plaf/basic/BasicScrollBarUI.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicScrollBarUI.java,v
retrieving revision 1.1.2.11
diff -u -r1.1.2.11 BasicScrollBarUI.java
--- javax/swing/plaf/basic/BasicScrollBarUI.java	11 Sep 2004 20:22:36 -0000	1.1.2.11
+++ javax/swing/plaf/basic/BasicScrollBarUI.java	16 Oct 2004 16:00:29 -0000
@@ -435,19 +435,19 @@
   protected Rectangle thumbRect;
 
   /** Indicates that the decrease highlight should be painted. */
-  protected static int DECREASE_HIGHLIGHT = 1;
+  protected static final int DECREASE_HIGHLIGHT = 1;
 
   /** Indicates that the increase highlight should be painted. */
-  protected static int INCREASE_HIGHLIGHT = 2;
+  protected static final int INCREASE_HIGHLIGHT = 2;
 
   /** Indicates that no highlight should be painted. */
-  protected static int NO_HIGHLIGHT = 0;
+  protected static final int NO_HIGHLIGHT = 0;
 
   /** Indicates that the scrolling direction is positive. */
-  private static int POSITIVE_SCROLL = 1;
+  private static final int POSITIVE_SCROLL = 1;
 
   /** Indicates that the scrolling direction is negative. */
-  private static int NEGATIVE_SCROLL = -1;
+  private static final int NEGATIVE_SCROLL = -1;
 
   /** The cached preferred size for the scrollbar. */
   private transient Dimension preferredSize;
Index: javax/swing/plaf/basic/BasicToolBarUI.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicToolBarUI.java,v
retrieving revision 1.1.2.9
diff -u -r1.1.2.9 BasicToolBarUI.java
--- javax/swing/plaf/basic/BasicToolBarUI.java	12 Aug 2004 07:54:11 -0000	1.1.2.9
+++ javax/swing/plaf/basic/BasicToolBarUI.java	16 Oct 2004 16:00:29 -0000
@@ -1331,10 +1331,10 @@
   private static class ToolBarBorder implements Border
   {
     /** The size of the larger, draggable side of the border. */
-    private static int offset = 10;
+    private static final int offset = 10;
 
     /** The other sides. */
-    private static int regular = 2;
+    private static final int regular = 2;
 
     /**
      * This method returns the border insets for the JToolBar.


More information about the Java-patches mailing list