chiark / gitweb /
Debianization.
[anag] / AnagGUI.java
index 1aee3590f14a3bb85e81119ca770f3246dca72f1..ac4d279a0c05b243a6a483828a20e002ad8adec4 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.6 2003/11/29 23:38:37 mdw Exp $
  *
  * Front-end GUI
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: AnagGUI.java,v $
+ * Revision 1.6  2003/11/29 23:38:37  mdw
+ * Debianization.
+ *
+ * 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 +265,24 @@ class AnagPanel extends Panel {
     });
     add(b, g);
 
+    b = new Button("Regular expression");
+    b.addActionListener(new ActionListener() {
+      public void actionPerformed(ActionEvent e) { getlist("-regexp"); }
+    });
+    add(b, g);
+
+    b = new Button("Perl regexp");
+    b.addActionListener(new ActionListener() {
+      public void actionPerformed(ActionEvent e) { getlist("-pcre"); }
+    });
+    add(b, g);
+
+    b = new Button("Monoalphabetic");
+    b.addActionListener(new ActionListener() {
+      public void actionPerformed(ActionEvent e) { getlist("-mono"); }
+    });
+    add(b, g);
+
     b = new Button("Trackword");
     b.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent e) { getlist("-trackword"); }