From: amwaterhouse Date: Thu, 10 Mar 2005 10:13:18 +0000 (+0000) Subject: actionlisteners added X-Git-Tag: Release_2_0~602 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a73042dd5f38ed512744fa7ee5db99270dfcf3be;p=jalview.git actionlisteners added --- diff --git a/src/jalview/jbgui/GFontChooser.java b/src/jalview/jbgui/GFontChooser.java index 3444c5b..d49cc87 100755 --- a/src/jalview/jbgui/GFontChooser.java +++ b/src/jalview/jbgui/GFontChooser.java @@ -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) + { + + } }