Author: kono
Date: 2011-05-26 13:57:20 -0700 (Thu, 26 May 2011)
New Revision: 25551

Modified:
   core3/swing-application-impl/trunk/pom.xml
   
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
Log:
Desktop location will be set to the center of the current system's display.

Modified: core3/swing-application-impl/trunk/pom.xml
===================================================================
--- core3/swing-application-impl/trunk/pom.xml  2011-05-26 20:26:35 UTC (rev 
25550)
+++ core3/swing-application-impl/trunk/pom.xml  2011-05-26 20:57:20 UTC (rev 
25551)
@@ -3,7 +3,7 @@
        <parent>
                <groupId>org.cytoscape</groupId>
                <artifactId>parent</artifactId>
-               <version>3.0.0-alpha7</version>
+               <version>3.0.0-alpha8-SNAPSHOT</version>
        </parent>
 
        <properties>

Modified: 
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
===================================================================
--- 
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
  2011-05-26 20:26:35 UTC (rev 25550)
+++ 
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
  2011-05-26 20:57:20 UTC (rev 25551)
@@ -71,10 +71,8 @@
 
        private final static long serialVersionUID = 1202339866271348L;
 
-       /*
-        * Default Desktop Size (slitly wider than 2.4 and before for new UI)
-        */
-       private static final Dimension DEF_DESKTOP_SIZE = new Dimension(950, 
700);
+       
+       private static final Dimension DEF_DESKTOP_SIZE = new Dimension(950, 
720);
 
        private static final String SMALL_ICON = "/images/c16.png";
 
@@ -161,13 +159,13 @@
                setContentPane(main_panel);
                pack();
                setSize(DEF_DESKTOP_SIZE);
+               
+               // Move it to the center
+               this.setLocationRelativeTo(null);
        
                // ...but don't actually show it!!!!
                // Once the system has fully started the JFrame will be set to 
                // visible by the StartupMostlyFinished class, found elsewhere.
-
-               //setVisible(true);
-               //toFront();
        }
 
        /**

-- 
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