Added support for regular expression matching, if supported by the C
[anag] / AnagGUI.java
index 1aee359..bf51835 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-java-*-
  *
- * $Id: AnagGUI.java,v 1.4 2001/02/19 19:19:11 mdw Exp $
+ * $Id: AnagGUI.java,v 1.5 2002/08/11 12:58:09 mdw Exp $
  *
  * Front-end GUI
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: AnagGUI.java,v $
+ * Revision 1.5  2002/08/11 12:58:09  mdw
+ * Added support for regular expression matching, if supported by the C
+ * library.
+ *
  * Revision 1.4  2001/02/19 19:19:11  mdw
  * Add `help' button.  Lowercase input to the command.
  *
@@ -258,6 +262,12 @@ class AnagPanel extends Panel {
     });
     add(b, g);
 
+    b = new Button("Regexp");
+    b.addActionListener(new ActionListener() {
+      public void actionPerformed(ActionEvent e) { getlist("-regexp"); }
+    });
+    add(b, g);
+
     b = new Button("Trackword");
     b.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent e) { getlist("-trackword"); }