Create group from search added
authoramwaterhouse <Andrew Waterhouse>
Fri, 21 Jan 2005 18:33:07 +0000 (18:33 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 21 Jan 2005 18:33:07 +0000 (18:33 +0000)
src/jalview/jbgui/GFinder.java

index 76b4b42..cc202bc 100755 (executable)
@@ -11,9 +11,9 @@ public class GFinder extends JPanel
   protected JTextField textfield = new JTextField();
   protected JButton findAll = new JButton();
   protected JButton findNext = new JButton();
-  protected JButton cancel = new JButton();
   JPanel jPanel1 = new JPanel();
   GridLayout gridLayout1 = new GridLayout();
+  protected JButton createNewGroup = new JButton();
 
   public GFinder()
   {
@@ -30,11 +30,11 @@ public class GFinder extends JPanel
   {
     jLabel1.setFont(new java.awt.Font("Verdana", 0, 12));
     jLabel1.setText("Find");
-    jLabel1.setBounds(new Rectangle(6, 28, 34, 15));
+    jLabel1.setBounds(new Rectangle(3, 30, 34, 15));
     this.setLayout(null);
     textfield.setFont(new java.awt.Font("Verdana", 0, 12));
     textfield.setText("");
-    textfield.setBounds(new Rectangle(41, 24, 133, 21));
+    textfield.setBounds(new Rectangle(40, 27, 133, 21));
     textfield.addKeyListener(new java.awt.event.KeyAdapter()
     {
       public void keyTyped(KeyEvent e)
@@ -68,26 +68,29 @@ public class GFinder extends JPanel
         findNext_actionPerformed(e);
       }
     });
-    cancel.setFont(new java.awt.Font("Verdana", 0, 12));
-    cancel.setText("Close");
-    cancel.addActionListener(new java.awt.event.ActionListener()
+    jPanel1.setBounds(new Rectangle(180, 5, 141, 64));
+    jPanel1.setLayout(gridLayout1);
+    gridLayout1.setHgap(0);
+    gridLayout1.setRows(3);
+    gridLayout1.setVgap(2);
+    createNewGroup.setEnabled(false);
+    createNewGroup.setFont(new java.awt.Font("Verdana", 0, 12));
+    createNewGroup.setToolTipText("");
+    createNewGroup.setMargin(new Insets(0, 0, 0, 0));
+    createNewGroup.setText("Create new group");
+    createNewGroup.addActionListener(new java.awt.event.ActionListener()
     {
       public void actionPerformed(ActionEvent e)
       {
-        cancel_actionPerformed(e);
+        createNewGroup_actionPerformed(e);
       }
     });
-    jPanel1.setBounds(new Rectangle(178, 4, 102, 62));
-    jPanel1.setLayout(gridLayout1);
-    gridLayout1.setHgap(0);
-    gridLayout1.setRows(3);
-    gridLayout1.setVgap(2);
-    this.add(textfield, null);
-    this.add(jPanel1, null);
     jPanel1.add(findNext, null);
     jPanel1.add(findAll, null);
-    jPanel1.add(cancel, null);
+    jPanel1.add(createNewGroup, null);
+    this.add(textfield, null);
     this.add(jLabel1, null);
+    this.add(jPanel1, null);
   }
 
   protected void findNext_actionPerformed(ActionEvent e)
@@ -100,10 +103,6 @@ public class GFinder extends JPanel
 
   }
 
-  protected void cancel_actionPerformed(ActionEvent e)
-  {
-
-  }
 
   protected void textfield_actionPerformed(ActionEvent e)
   {
@@ -114,4 +113,10 @@ public class GFinder extends JPanel
   {
     findNext.setEnabled(true);
   }
+
+  public void createNewGroup_actionPerformed(ActionEvent e)
+  {
+
+  }
+
 }