Author: pwang
Date: 2012-07-27 12:00:08 -0700 (Fri, 27 Jul 2012)
New Revision: 30021
Modified:
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallFromStorePanel.java
Log:
Add a close button
Modified:
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallFromStorePanel.java
===================================================================
---
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallFromStorePanel.java
2012-07-27 18:55:57 UTC (rev 30020)
+++
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallFromStorePanel.java
2012-07-27 19:00:08 UTC (rev 30021)
@@ -76,6 +76,7 @@
private javax.swing.JTextPane descriptionTextPane;
private javax.swing.JTextField filterTextField;
private javax.swing.JButton installButton;
+ private javax.swing.JButton closeButton;
private javax.swing.JButton installFromFileButton;
private javax.swing.JScrollPane resultsScrollPane;
private javax.swing.JTree resultsTree;
@@ -171,7 +172,8 @@
descriptionTextPane = new javax.swing.JTextPane();
viewOnAppStoreButton = new javax.swing.JButton();
installButton = new javax.swing.JButton();
-
+ closeButton = new javax.swing.JButton();
+
searchAppsLabel.setText("Search:");
installFromFileButton.setText("Install from File...");
@@ -241,6 +243,14 @@
}
});
+ closeButton.setText("Close");
+ closeButton.setEnabled(true);
+ closeButton.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+
((javax.swing.JDialog)InstallFromStorePanel.this.parent).dispose();
+ }
+ });
+
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
@@ -262,6 +272,8 @@
.addComponent(installButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(viewOnAppStoreButton)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(closeButton)
.addContainerGap())))
);
layout.setVerticalGroup(
@@ -277,7 +289,8 @@
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(installFromFileButton)
.addComponent(viewOnAppStoreButton)
- .addComponent(installButton))
+ .addComponent(installButton)
+ .addComponent(closeButton))
.addContainerGap())
);
--
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.