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

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Mon Jun 18 15:06:44 MST 2007


Author: dmsmith
Date: 2007-06-18 15:06:43 -0700 (Mon, 18 Jun 2007)
New Revision: 1413

Modified:
   trunk/common-swing/src/main/java/org/crosswire/common/swing/LookAndFeelUtil.java
Log:
Removed GTK from the allowable look and feels. It generates exceptions when no Bibles are installed.

Modified: trunk/common-swing/src/main/java/org/crosswire/common/swing/LookAndFeelUtil.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/swing/LookAndFeelUtil.java	2007-06-18 04:06:00 UTC (rev 1412)
+++ trunk/common-swing/src/main/java/org/crosswire/common/swing/LookAndFeelUtil.java	2007-06-18 22:06:43 UTC (rev 1413)
@@ -171,11 +171,11 @@
         String systemLAF = UIManager.getSystemLookAndFeelClassName();
         try
         {
-            // Note: GTK looks good under Java 1.5
+            // Note: GTK looks good under Java 1.5, but is broken.
             // Motif still does not look good.
             if (systemLAF.indexOf("WindowsLookAndFeel") != -1 ||  //$NON-NLS-1$
-                systemLAF.indexOf("AquaLookAndfeel") != -1 || //$NON-NLS-1$
-                systemLAF.indexOf("GTKLookAndFeel") != -1) //$NON-NLS-1$
+                //systemLAF.indexOf("GTKLookAndFeel") != -1 || //$NON-NLS-1$
+                systemLAF.indexOf("AquaLookAndfeel") != -1) //$NON-NLS-1$
             {
                 UIManager.setLookAndFeel(systemLAF);
                 // MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());




More information about the jsword-svn mailing list