Author: mes
Date: 2010-02-19 11:13:57 -0800 (Fri, 19 Feb 2010)
New Revision: 19385

Modified:
   
csplugins/trunk/ucsd/mes/MCODE3/src/csplugins/mcode/internal/ui/MCODEMainPanel.java
Log:
moved target network panel into on top of find clusters panel

Modified: 
csplugins/trunk/ucsd/mes/MCODE3/src/csplugins/mcode/internal/ui/MCODEMainPanel.java
===================================================================
--- 
csplugins/trunk/ucsd/mes/MCODE3/src/csplugins/mcode/internal/ui/MCODEMainPanel.java
 2010-02-19 03:33:30 UTC (rev 19384)
+++ 
csplugins/trunk/ucsd/mes/MCODE3/src/csplugins/mcode/internal/ui/MCODEMainPanel.java
 2010-02-19 19:13:57 UTC (rev 19385)
@@ -111,14 +111,14 @@
      *
      */
     public MCODEMainPanel() {
-               // Overall panel settings
+        // Overall panel settings
         this.setMinimumSize(new Dimension(310, 420));
         this.setPreferredSize(new Dimension(310, 420));
-               this.setLayout(new BorderLayout());
-               
-               networkPanel = new NetworkSelectorPanel();
-               networkPanel.setBorder(BorderFactory.createTitledBorder("Target 
Network"));
+        this.setLayout(new BorderLayout());
 
+        networkPanel = new NetworkSelectorPanel();
+        networkPanel.setBorder(BorderFactory.createTitledBorder("Target 
Network"));
+
         //get the current parameters
         currentParamsCopy = MCODECurrentParameters.getParamsCopy(null);
         currentParamsCopy.setDefaultParams();
@@ -158,12 +158,10 @@
      */
     private JPanel createScopePanel() {
                
-               
         final JPanel panel = new JPanel();
         panel.setLayout(new GridLayout(0,1));
         panel.setBorder(BorderFactory.createTitledBorder("Find Cluster(s)"));
         
-        panel.add(networkPanel);
 
         final JRadioButton scopeNetwork = new JRadioButton("in Whole Network", 
currentParamsCopy.getScope().equals(MCODEParameterSet.NETWORK));
         final JRadioButton scopeSelection = new JRadioButton("from Selection", 
currentParamsCopy.getScope().equals(MCODEParameterSet.SELECTION));
@@ -181,7 +179,12 @@
         panel.add(scopeNetwork);
         panel.add(scopeSelection);
         
-        return panel;
+        final JPanel topPanel = new JPanel();
+        topPanel.setLayout(new GridLayout(0,1));
+        topPanel.add(networkPanel);
+        topPanel.add(panel);
+               
+        return topPanel;
     }
 
     /**

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