X-Git-Url: https://git.distorted.org.uk/~mdw/anag/blobdiff_plain/f7ebae384ae1bb948fc062dde36916d2776d3eae..a10122de085ddf5c8bec6fc12c7164ad1dc1459c:/AnagGUI.java?ds=sidebyside diff --git a/AnagGUI.java b/AnagGUI.java index 1aee359..bf51835 100644 --- a/AnagGUI.java +++ b/AnagGUI.java @@ -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 * @@ -29,6 +29,10 @@ /*----- 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"); }