KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > coach > tracing > server > viewer > IdentityTreeFrame


1 /*
2  * IdentityTreeFrame.java
3  *
4  * Created on April 2, 2003, 12:14 PM
5  */

6
7 package org.coach.tracing.server.viewer;
8
9 import javax.swing.*;
10 import javax.swing.tree.*;
11
12 /**
13  *
14  * @author batteram
15  */

16 public class IdentityTreeFrame extends javax.swing.JFrame JavaDoc {
17     
18     /** Creates new form IdentityTreeFrame */
19     public IdentityTreeFrame() {
20         initComponents();
21         IdentityModel model = new IdentityModel(IdentityNode.getRootNode());
22         JTree tree = new JTree(model);
23         this.getContentPane().add(tree);
24         pack();
25     }
26     
27     /** This method is called from within the constructor to
28      * initialize the form.
29      * WARNING: Do NOT modify this code. The content of this method is
30      * always regenerated by the Form Editor.
31      */

32     private void initComponents() {//GEN-BEGIN:initComponents
33

34         addWindowListener(new java.awt.event.WindowAdapter JavaDoc() {
35             public void windowClosing(java.awt.event.WindowEvent JavaDoc evt) {
36                 exitForm(evt);
37             }
38         });
39         
40         pack();
41     }//GEN-END:initComponents
42

43     /** Exit the Application */
44     private void exitForm(java.awt.event.WindowEvent JavaDoc evt) {//GEN-FIRST:event_exitForm
45
dispose();
46     }//GEN-LAST:event_exitForm
47

48     /**
49      * @param args the command line arguments
50      */

51     public static void main(String JavaDoc args[]) {
52         new IdentityTreeFrame().show();
53     }
54     
55     
56     // Variables declaration - do not modify//GEN-BEGIN:variables
57
// End of variables declaration//GEN-END:variables
58

59 }
60
Popular Tags