actionlisteners added
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 Mar 2005 10:13:18 +0000 (10:13 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 Mar 2005 10:13:18 +0000 (10:13 +0000)
src/jalview/jbgui/GFontChooser.java

index 3444c5b..d49cc87 100755 (executable)
@@ -44,9 +44,23 @@ public class GFontChooser extends JPanel
     fontSize.setFont(new java.awt.Font("Verdana", 0, 11));
     fontSize.setOpaque(false);
     fontSize.setPreferredSize(new Dimension(50, 21));
+    fontSize.addActionListener(new java.awt.event.ActionListener()
+    {
+      public void actionPerformed(ActionEvent e)
+      {
+        fontSize_actionPerformed(e);
+      }
+    });
     fontStyle.setFont(new java.awt.Font("Verdana", 0, 11));
     fontStyle.setOpaque(false);
     fontStyle.setPreferredSize(new Dimension(90, 21));
+    fontStyle.addActionListener(new java.awt.event.ActionListener()
+    {
+      public void actionPerformed(ActionEvent e)
+      {
+        fontStyle_actionPerformed(e);
+      }
+    });
     jLabel2.setFont(new java.awt.Font("Verdana", 0, 11));
     jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
     jLabel2.setText("Size: ");
@@ -60,6 +74,13 @@ public class GFontChooser extends JPanel
     fontName.setMinimumSize(new Dimension(300, 21));
     fontName.setOpaque(false);
     fontName.setPreferredSize(new Dimension(180, 21));
+    fontName.addActionListener(new java.awt.event.ActionListener()
+    {
+      public void actionPerformed(ActionEvent e)
+      {
+        fontName_actionPerformed(e);
+      }
+    });
     ok.setFont(new java.awt.Font("Verdana", 0, 11));
     ok.setText("OK");
     ok.addActionListener(new java.awt.event.ActionListener()
@@ -109,4 +130,19 @@ public class GFontChooser extends JPanel
   {
 
   }
+
+  protected void fontName_actionPerformed(ActionEvent e)
+  {
+
+  }
+
+  protected void fontSize_actionPerformed(ActionEvent e)
+  {
+
+  }
+
+  protected void fontStyle_actionPerformed(ActionEvent e)
+  {
+
+  }
 }