X-Git-Url: https://git.distorted.org.uk/~mdw/anag/blobdiff_plain/435ab388589c4dc178c81e170c87b825a592f51a..a29e0def776d0857020a25648fc1a1949db20b6f:/AnagGUI.java diff --git a/AnagGUI.java b/AnagGUI.java index 1aee359..7211c79 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.7 2004/04/08 01:36:18 mdw Exp $ * * Front-end GUI * @@ -26,25 +26,6 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: AnagGUI.java,v $ - * 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.*; @@ -258,6 +239,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"); }