classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Initialize KEYBOARD_DIVIDER_MOVE_OFFSET constant


From: Thomas Fitzsimmons
Subject: [cp-patches] Initialize KEYBOARD_DIVIDER_MOVE_OFFSET constant
Date: Sun, 21 Aug 2005 15:05:43 -0400

Hi,

In closing http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22770 I noticed
that the JDK sets KEYBOARD_DIVIDER_MOVE_OFFSET to 3.  This patch does
the same.

Tom

2005-08-21  Thomas Fitzsimmons  <address@hidden>

        * javax/swing/plaf/basic/BasicSplitPaneUI.java
        (KEYBOARD_DIVIDER_MOVE_OFFSET): Initialize with 3.

Index: javax/swing/plaf/basic/BasicSplitPaneUI.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java,v
retrieving revision 1.14
diff -u -r1.14 BasicSplitPaneUI.java
--- javax/swing/plaf/basic/BasicSplitPaneUI.java        12 Aug 2005 14:02:12 
-0000      1.14
+++ javax/swing/plaf/basic/BasicSplitPaneUI.java        21 Aug 2005 19:01:58 
-0000
@@ -870,7 +870,8 @@
   transient int lastDragLocation = -1;
 
   /** The distance the divider is moved when moved by keyboard actions. */
-  protected static int KEYBOARD_DIVIDER_MOVE_OFFSET;
+  // Sun defines this as 3
+  protected static int KEYBOARD_DIVIDER_MOVE_OFFSET = 3;
 
   /** The divider that divides this JSplitPane. */
   protected BasicSplitPaneDivider divider;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]