patch for JAL-1121 - reset button and slightly wider default window size
[jalview.git] / src / jalview / jbgui / GPCAPanel.java
index 72cb5cd..e677f4d 100755 (executable)
@@ -38,7 +38,9 @@ public class GPCAPanel extends JInternalFrame
   protected JComboBox yCombobox = new JComboBox();
 
   protected JComboBox zCombobox = new JComboBox();
-
+  
+  protected JButton resetButton = new JButton();
+  
   FlowLayout flowLayout1 = new FlowLayout();
 
   BorderLayout borderLayout1 = new BorderLayout();
@@ -130,6 +132,16 @@ public class GPCAPanel extends JInternalFrame
         xCombobox_actionPerformed(e);
       }
     });
+    resetButton.setFont(new java.awt.Font("Verdana",0,12));
+    resetButton.setText("Reset");
+    resetButton.addActionListener(new java.awt.event.ActionListener()
+    {
+      @Override
+      public void actionPerformed(ActionEvent e)
+      {
+        resetButton_actionPerformed(e);
+      }
+    });
     fileMenu.setText("File");
     saveMenu.setText("Save as");
     eps.setText("EPS");
@@ -252,6 +264,7 @@ public class GPCAPanel extends JInternalFrame
     jPanel2.add(yCombobox, null);
     jPanel2.add(jLabel3, null);
     jPanel2.add(zCombobox, null);
+    jPanel2.add(resetButton, null);
     jMenuBar1.add(fileMenu);
     jMenuBar1.add(viewMenu);
     jMenuBar1.add(calcSettings);
@@ -268,6 +281,12 @@ public class GPCAPanel extends JInternalFrame
     viewMenu.add(associateViewsMenu);
   }
 
+  protected void resetButton_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
   protected void protSetting_actionPerfomed(ActionEvent arg0)
   {
     // TODO Auto-generated method stub