Author: mes
Date: 2012-04-20 12:34:09 -0700 (Fri, 20 Apr 2012)
New Revision: 28906

Modified:
   
cytoscape/trunk/application/src/main/java/cytoscape/view/CytoscapeDesktop.java
Log:
trick to force cytoscape window to the front, which doesn't always work on macs

Modified: 
cytoscape/trunk/application/src/main/java/cytoscape/view/CytoscapeDesktop.java
===================================================================
--- 
cytoscape/trunk/application/src/main/java/cytoscape/view/CytoscapeDesktop.java  
    2012-04-20 19:06:44 UTC (rev 28905)
+++ 
cytoscape/trunk/application/src/main/java/cytoscape/view/CytoscapeDesktop.java  
    2012-04-20 19:34:09 UTC (rev 28906)
@@ -344,6 +344,10 @@
                setVisible(true);
                toFront();
 
+               // a trick to force macs to bring the window to the front
+               setAlwaysOnTop(true);
+               setAlwaysOnTop(false);
+
                // sets the top level identifier for java help
                CSH.setHelpIDString(this,"Cytoscape User Manual");
        }

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