01: package de.webman.wminstaller.tools;
02:
03: import javax.swing.*;
04: import javax.swing.tree.*;
05: import javax.swing.event.*;
06: import java.awt.*;
07: import java.awt.event.*;
08: import java.io.*;
09:
10: /**
11: * Testclass for the filetree reader (@see
12: * de.webman.wminstaller.tools.FileTree)
13: *
14: * @author <a href="mailto:ulf@webman.de">Ulf Goldammer</a>
15: * @version $Revision: 1.2 $
16: **/
17: public class FileTreeTest {
18: /* $Id: FileTreeTest.java,v 1.2 2002/02/11 18:26:55 gregor Exp $ */
19:
20: public static void main(String[] args) {
21:
22: JFrame f = new JFrame("File Tree Test");
23: final FileTree ft = new FileTree(null);
24:
25: f.getContentPane().add(new JScrollPane(ft));
26: f.setSize(300, 300);
27: f.addWindowListener(new WindowAdapter() {
28: public void windowClosing(WindowEvent evt) {
29: System.exit(0);
30: }
31: });
32: f.setVisible(true);
33: }
34: }
|