KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > wminstaller > tools > FileTreeTest


1 package de.webman.wminstaller.tools;
2
3 import javax.swing.*;
4 import javax.swing.tree.*;
5 import javax.swing.event.*;
6 import java.awt.*;
7 import java.awt.event.*;
8 import java.io.*;
9
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 JavaDoc[] 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 }
35
Popular Tags