KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > directory > jxplorer > test > EventTester


1 package com.ca.directory.jxplorer.test;
2
3 import com.ca.directory.jxplorer.event.*;
4 import com.ca.directory.jxplorer.JXplorer;
5
6
7 public class EventTester
8     implements JXplorerListener
9 {
10     JXplorer DNpicker;
11
12     /**
13      * Do nothing except create an EventTester
14      */

15     public static void main (String JavaDoc args[])
16     {
17          new EventTester();
18     }
19     
20     /**
21      * Constructor creates a JXplorer object, and registers the
22      * newly created object with JXplorer as a JXplorerListener.
23      */

24      
25     public EventTester()
26     {
27         DNpicker = new JXplorer();
28         DNpicker.addJXplorerListener(this);
29     }
30
31     /**
32      * Implement the JXplorerListener interface:
33      */

34      
35     public void JXplorerDNSelected(JXplorerEvent e)
36     {
37         System.out.println("**** Selected DN = " + e.getDN() + " **** ");
38         DNpicker.hide();
39     }
40         
41     
42 }
Popular Tags