X-Git-Url: https://git.distorted.org.uk/~mdw/anag/blobdiff_plain/a10122de085ddf5c8bec6fc12c7164ad1dc1459c..cdb480951031f64f4785da1787b16fe235b76f13:/AnagGUI.java diff --git a/AnagGUI.java b/AnagGUI.java index bf51835..7211c79 100644 --- a/AnagGUI.java +++ b/AnagGUI.java @@ -1,6 +1,6 @@ /* -*-java-*- * - * $Id: AnagGUI.java,v 1.5 2002/08/11 12:58:09 mdw Exp $ + * $Id: AnagGUI.java,v 1.7 2004/04/08 01:36:18 mdw Exp $ * * Front-end GUI * @@ -26,29 +26,6 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- 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. - * - * Revision 1.3 2001/02/16 21:46:10 mdw - * Use a BufferedReader, not a LineNumberReader. - * - * Revision 1.2 2001/02/07 09:10:04 mdw - * Add a settings panel (currently only allows the wordlist to be - * changed). Move the buttons down the right-hand side of the list. Add a - * `Run' button which passes arguments through directly. - * - * Revision 1.1 2001/02/04 19:53:07 mdw - * Simple GUI front-end in Java. - * - */ - /*----- Imports -----------------------------------------------------------*/ import java.lang.*; @@ -262,12 +239,24 @@ class AnagPanel extends Panel { }); add(b, g); - b = new Button("Regexp"); + 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"); }