Reset button added
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 Aug 2006 13:18:12 +0000 (13:18 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 Aug 2006 13:18:12 +0000 (13:18 +0000)
src/jalview/jbgui/GDasSourceBrowser.java

index c77627a..5efa6c0 100755 (executable)
@@ -27,6 +27,8 @@ import javax.swing.BorderFactory;
 import javax.swing.event.HyperlinkListener;\r
 import javax.swing.event.HyperlinkEvent;\r
 import java.awt.Dimension;\r
+import java.awt.Font;\r
+import java.awt.Insets;\r
 \r
 public class GDasSourceBrowser\r
     extends JPanel\r
@@ -67,7 +69,9 @@ public class GDasSourceBrowser
         fullDetails_hyperlinkUpdate(e);\r
       }\r
     });\r
+    fullDetails.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
     fullDetails.setEditable(false);\r
+    registryLabel.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
     registryLabel.setHorizontalAlignment(SwingConstants.TRAILING);\r
     registryLabel.setText("Use Registry");\r
     addLocal.setText("Add Local Source");\r
@@ -84,6 +88,26 @@ public class GDasSourceBrowser
     jScrollPane2.setBorder(titledBorder3);\r
     jScrollPane3.setBorder(titledBorder4);\r
     jScrollPane4.setBorder(titledBorder5);\r
+    titledBorder2.setTitleFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    titledBorder3.setTitleFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    titledBorder4.setTitleFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    filter1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    filter2.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    filter3.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    table.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    reset.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
+    reset.setMargin(new Insets(2, 2, 2, 2));\r
+    reset.setText("Reset");\r
+    reset.addActionListener(new ActionListener()\r
+    {\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        reset_actionPerformed(e);\r
+      }\r
+    });\r
+    jPanel2.setLayout(borderLayout1);\r
+    borderLayout1.setHgap(5);\r
+    registryURL.setFont(new java.awt.Font("Verdana", Font.PLAIN, 10));\r
     scrollPane.getViewport().add(table);\r
     fullDetailsScrollpane.getViewport().add(fullDetails);\r
     jScrollPane3.getViewport().add(filter2);\r
@@ -92,41 +116,40 @@ public class GDasSourceBrowser
     jPanel1.add(addLocal, null);\r
     jPanel1.add(progressBar, null);\r
     jScrollPane2.getViewport().add(filter1);\r
-    this.add(registryLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0\r
-        , GridBagConstraints.WEST, GridBagConstraints.NONE,\r
-        new Insets(11, 2, 0, 0), 9, 2));\r
-    this.add(registryURL, new GridBagConstraints(1, 2, 4, 1, 1.0, 0.0\r
-                                                 , GridBagConstraints.WEST,\r
-                                                 GridBagConstraints.HORIZONTAL,\r
-                                                 new Insets(6, 7, 0, 10), 393,\r
-                                                 3));\r
-    this.add(jPanel1, new GridBagConstraints(0, 3, 5, 1, 1.0, 1.0\r
+    this.add(jPanel1, new GridBagConstraints(0, 3, 3, 1, 1.0, 1.0\r
                                              , GridBagConstraints.CENTER,\r
                                              GridBagConstraints.HORIZONTAL,\r
                                              new Insets(0, 0, 0, 0), 0, 0));\r
-    this.add(fullDetailsScrollpane, new GridBagConstraints(2, 0, 3, 1, 1.0, 1.0\r
+    this.add(fullDetailsScrollpane, new GridBagConstraints(1, 0, 2, 1, 1.0, 1.0\r
         , GridBagConstraints.CENTER, GridBagConstraints.BOTH,\r
         new Insets(3, 0, 0, 3), 240, 130));\r
-    this.add(jScrollPane3, new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0\r
+    this.add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0\r
+                                                , GridBagConstraints.CENTER,\r
+                                                GridBagConstraints.BOTH,\r
+                                                new Insets(3, 2, 0, 0), 150,\r
+                                                130));\r
+    jPanel2.add(registryLabel, java.awt.BorderLayout.WEST);\r
+    jPanel2.add(registryURL, java.awt.BorderLayout.CENTER);\r
+    jPanel2.add(reset, java.awt.BorderLayout.EAST);\r
+    this.add(jPanel2, new GridBagConstraints(0, 2, 3, 1, 0.0, 0.0\r
+                                             , GridBagConstraints.CENTER,\r
+                                             GridBagConstraints.HORIZONTAL,\r
+                                             new Insets(5, 10, 0, 10), 339, 0));\r
+    this.add(jScrollPane2, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0\r
                                                   , GridBagConstraints.CENTER,\r
                                                   GridBagConstraints.BOTH,\r
-                                                  new Insets(0, 0, 0, 0), 80,\r
+                                                  new Insets(0, 0, 0, 60), 80,\r
                                                   60));\r
-    this.add(jScrollPane4, new GridBagConstraints(4, 1, 1, 1, 1.0, 1.0\r
+    this.add(jScrollPane4, new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0\r
                                                   , GridBagConstraints.CENTER,\r
                                                   GridBagConstraints.BOTH,\r
-                                                  new Insets(0, 0, 0, 0), 80,\r
+                                                  new Insets(0, -80, 0, 0), 80,\r
                                                   60));\r
-    this.add(jScrollPane2, new GridBagConstraints(0, 1, 2, 1, 1.0, 1.0\r
+    this.add(jScrollPane3, new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0\r
                                                   , GridBagConstraints.CENTER,\r
                                                   GridBagConstraints.BOTH,\r
-                                                  new Insets(0, 0, 0, 0), 80,\r
+                                                  new Insets(0, -60, 0, 80), 80,\r
                                                   60));\r
-    this.add(scrollPane, new GridBagConstraints(0, 0, 2, 1, 1.0, 1.0\r
-                                                , GridBagConstraints.CENTER,\r
-                                                GridBagConstraints.BOTH,\r
-                                                new Insets(3, 2, 0, 0), 150,\r
-                                                130));\r
   }\r
 \r
   protected JTable table = new JTable();\r
@@ -152,6 +175,9 @@ public class GDasSourceBrowser
   TitledBorder titledBorder3 = new TitledBorder("Authority:");\r
   TitledBorder titledBorder4 = new TitledBorder("Type:");\r
   TitledBorder titledBorder5 = new TitledBorder("Label:");\r
+  JButton reset = new JButton();\r
+  JPanel jPanel2 = new JPanel();\r
+  BorderLayout borderLayout1 = new BorderLayout();\r
   public void refresh_actionPerformed(ActionEvent e)\r
   {\r
 \r
@@ -176,4 +202,9 @@ public class GDasSourceBrowser
 \r
   }\r
 \r
+  public void reset_actionPerformed(ActionEvent e)\r
+  {\r
+\r
+  }\r
+\r
 }\r