From: Steve F. <sm...@us...> - 2002-08-03 22:23:01
|
Update of /cvsroot/mockobjects/no-stone-unturned/src/nostone/gui In directory usw-pr-cvs1:/tmp/cvs-serv24636/src/nostone/gui Modified Files: Searcher.java Added Files: Directory.java Log Message: --- NEW FILE: Directory.java --- package nostone.gui; public interface Directory { } Index: Searcher.java =================================================================== RCS file: /cvsroot/mockobjects/no-stone-unturned/src/nostone/gui/Searcher.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Searcher.java 2 Aug 2002 21:57:09 -0000 1.1 +++ Searcher.java 3 Aug 2002 22:22:59 -0000 1.2 @@ -7,7 +7,7 @@ import java.awt.event.*; public class Searcher extends JFrame { - public Searcher() throws HeadlessException { + public Searcher(Directory directory) throws HeadlessException { super("Searcher"); JButton searchButton = new JButton("Search"); @@ -28,7 +28,7 @@ } static public void main(String[] args) { - Searcher searcher = new Searcher(); + Searcher searcher = new Searcher(new Directory() {}); searcher.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { Window w = e.getWindow(); |