From a73042dd5f38ed512744fa7ee5db99270dfcf3be Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 10 Mar 2005 10:13:18 +0000 Subject: [PATCH] actionlisteners added --- src/jalview/jbgui/GFontChooser.java | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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) + { + + } } -- 1.7.10.2