[jsword-svn] r1610 - trunk/common-swing/src/main/java/org/crosswire/common/swing

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Sat Aug 4 15:21:46 MST 2007


Author: dmsmith
Date: 2007-08-04 15:21:46 -0700 (Sat, 04 Aug 2007)
New Revision: 1610

Modified:
   trunk/common-swing/src/main/java/org/crosswire/common/swing/CWScrollPane.java
Log:
Change to always show scroll bars.

Modified: trunk/common-swing/src/main/java/org/crosswire/common/swing/CWScrollPane.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/swing/CWScrollPane.java	2007-08-04 22:12:10 UTC (rev 1609)
+++ trunk/common-swing/src/main/java/org/crosswire/common/swing/CWScrollPane.java	2007-08-04 22:21:46 UTC (rev 1610)
@@ -27,8 +27,6 @@
 import javax.swing.JScrollPane;
 import javax.swing.ScrollPaneConstants;
 
-import org.crosswire.common.util.OSType;
-
 /**
  * A ScrollPane that give appropriate cross platform behavior.
  * Specifically, on the Mac the vertical and horizontal scrollbars should always appear.
@@ -53,20 +51,20 @@
 
     private static int getXPlatformVerticalScrollBarPolicy()
     {
-        if (OSType.MAC.equals(OSType.getOSType()))
-        {
+//        if (OSType.MAC.equals(OSType.getOSType()))
+//        {
             return ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
-        }
-        return ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
+//        }
+//        return ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
     }
 
     private static int getXPlatformHorizontalScrollBarPolicy()
     {
-        if (OSType.MAC.equals(OSType.getOSType()))
-        {
+//        if (OSType.MAC.equals(OSType.getOSType()))
+//        {
             return ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
-        }
-        return ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
+//        }
+//        return ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
     }
 
     /* (non-Javadoc)




More information about the jsword-svn mailing list