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

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Mon Jun 11 08:46:08 MST 2007


Author: dmsmith
Date: 2007-06-11 08:46:08 -0700 (Mon, 11 Jun 2007)
New Revision: 1397

Modified:
   trunk/common-swing/src/main/java/org/crosswire/common/swing/LookAndFeelUtil.java
Log:
Now allow GTK Look and Feel as it looks good on Linux under Java 1.5.

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-11 15:31:38 UTC (rev 1396)
+++ trunk/common-swing/src/main/java/org/crosswire/common/swing/LookAndFeelUtil.java	2007-06-11 15:46:08 UTC (rev 1397)
@@ -171,12 +171,11 @@
         String systemLAF = UIManager.getSystemLookAndFeelClassName();
         try
         {
-            // GTKLookAndFeel and MotiflLookAndFeel doesn't look good currently.
-            // Only WindowsLookAndFeel and MetalLookAndFeel looks fine.
-            // Not sure how AquaLookAndFeel looks, so allow it for now.
-            // NOTE(DM): test with the gtk laf before allowing it.
+            // Note: GTK looks good under Java 1.5
+            // Motif still does not look good.
             if (systemLAF.indexOf("WindowsLookAndFeel") != -1 ||  //$NON-NLS-1$
-                systemLAF.indexOf("AquaLookAndfeel") != -1) //$NON-NLS-1$
+                systemLAF.indexOf("AquaLookAndfeel") != -1 || //$NON-NLS-1$
+                systemLAF.indexOf("GTKLookAndFeel") != -1) //$NON-NLS-1$
             {
                 UIManager.setLookAndFeel(systemLAF);
                 // MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());




More information about the jsword-svn mailing list