Author: ruschein
Date: 2010-02-16 16:18:02 -0800 (Tue, 16 Feb 2010)
New Revision: 19343
Modified:
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ModFindPlugin.java
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ui/SearchPropertyPanel.java
Log:
Now scroll bars are dynamically appear as needed in the parameter pane.
Modified:
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ModFindPlugin.java
===================================================================
---
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ModFindPlugin.java
2010-02-16 23:59:36 UTC (rev 19342)
+++
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ModFindPlugin.java
2010-02-17 00:18:02 UTC (rev 19343)
@@ -1,9 +1,11 @@
package org.idekerlab.ModFindPlugin;
+import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;
+import javax.swing.JScrollPane;
import javax.swing.SwingConstants;
import org.idekerlab.ModFindPlugin.ui.SearchPropertyPanel;
@@ -21,7 +23,7 @@
public class ModFindPlugin extends CytoscapePlugin {
// Main GUI Panel for this plugin. Should be a singleton.
- private SearchPropertyPanel searchPanel;
+ private JScrollPane scrollPane;
public ModFindPlugin() {
@@ -33,17 +35,16 @@
class PluginAction implements ActionListener {
public void actionPerformed(ActionEvent e) {
- if (searchPanel == null)
- searchPanel = new SearchPropertyPanel();
-
final CytoPanel cytoPanel =
Cytoscape.getDesktop().getCytoPanel(
SwingConstants.WEST);
- int index = cytoPanel.indexOfComponent(searchPanel);
+ int index = cytoPanel.indexOfComponent(scrollPane);
if (index < 0) {
+ final SearchPropertyPanel searchPanel = new
SearchPropertyPanel();
+ scrollPane = new JScrollPane(searchPanel);
searchPanel.updateState();
searchPanel.setVisible(true);
- cytoPanel.add("ModFind", searchPanel);
- index = cytoPanel.indexOfComponent(searchPanel);
+ cytoPanel.add("ModFind", scrollPane);
+ index = cytoPanel.indexOfComponent(scrollPane);
}
cytoPanel.setSelectedIndex(index);
cytoPanel.setState(CytoPanelState.DOCK);
Modified:
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ui/SearchPropertyPanel.java
===================================================================
---
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ui/SearchPropertyPanel.java
2010-02-16 23:59:36 UTC (rev 19342)
+++
csplugins/trunk/ucsd/ruschein/ModFind/src/org/idekerlab/ModFindPlugin/ui/SearchPropertyPanel.java
2010-02-17 00:18:02 UTC (rev 19343)
@@ -48,7 +48,6 @@
/** Creates new form SearchPropertyPanel */
public SearchPropertyPanel() {
initComponents();
- this.setMinimumSize(new Dimension(310, 430));
Cytoscape.getEdgeAttributes().getMultiHashMapDefinition()
.addDataDefinitionListener(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.