Author: scooter
Date: 2012-01-16 15:03:30 -0800 (Mon, 16 Jan 2012)
New Revision: 28025

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
Log:
Changed default look and feel on Linux systems from system look and 
feel to Nimbus, like it was in 2.8.2.  This looks a lot better.  Also
increased default window width to fit entire icon bar.



Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
     2012-01-16 22:59:54 UTC (rev 28024)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
     2012-01-16 23:03:30 UTC (rev 28025)
@@ -91,7 +91,7 @@
 
        private final static long serialVersionUID = 1202339866271348L;
        
-       private static final Dimension DEF_DESKTOP_SIZE = new Dimension(1150, 
850);
+       private static final Dimension DEF_DESKTOP_SIZE = new Dimension(1200, 
850);
        private static final int DEF_DIVIDER_LOATION = 450;
        
        private static final String SMALL_ICON = "/images/c16.png";
@@ -174,7 +174,15 @@
 
                // update look and feel
                try {
-                       final String laf = 
UIManager.getSystemLookAndFeelClassName();
+                       String laf = null;
+                       if (System.getProperty("os.name").startsWith("Mac OS 
X") ||
+                           System.getProperty("os.name").startsWith("Windows"))
+                               laf = UIManager.getSystemLookAndFeelClassName();
+                       else {
+                               // Use Nimbus on Unix systems
+                               laf = 
"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel";
+                       }
+
                        logger.debug("setting look and feel to: " + laf);
                        UIManager.setLookAndFeel(laf);
                        SwingUtilities.updateComponentTreeUI(this);

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to