[MOBY-guts] biomoby commit
Eddie Kawas
kawas at pub.open-bio.org
Wed Oct 12 17:57:54 UTC 2005
kawas
Wed Oct 12 13:57:54 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared
In directory pub.open-bio.org:/tmp/cvs-serv14742/org/biomoby/client/ui/graphical/applets/shared
Modified Files:
MobyTree.java
Log Message:
organized import statements, removed variables that werent read, etc.
moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared MobyTree.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared/MobyTree.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared/MobyTree.java 2005/09/30 14:44:58 1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared/MobyTree.java 2005/10/12 17:57:54 1.4
@@ -1,5 +1,7 @@
package org.biomoby.client.ui.graphical.applets.shared;
+import java.awt.BorderLayout;
+import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.util.ArrayList;
@@ -7,6 +9,7 @@
import java.util.HashMap;
import java.util.Iterator;
+import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
@@ -350,4 +353,21 @@
tree.clearSelection();
tree.collapseRow(0);
}
+
+ public static void main(String[] args) {
+ JFrame frame = new JFrame();
+ MobyTree tree = new MobyTree(false, "http://localhost:8080/RESOURCES/MOBY-S/Objects", "Object");
+ tree.makeObjectTree("Object");
+ tree.setPreferredSize(new Dimension(400, 400));
+ // Add button to the frame
+ frame.getContentPane().add(tree, BorderLayout.CENTER);
+
+ // Set initial size
+ int frameWidth = 300;
+ int frameHeight = 300;
+ frame.setSize(frameWidth, frameHeight);
+
+ // Show the frame
+ frame.setVisible(true);
+ }
}
More information about the MOBY-guts
mailing list