KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corbaclient > actions > Exit


1 package org.enhydra.shark.corbaclient.actions;
2
3 import java.awt.event.*;
4
5
6 import org.enhydra.shark.corbaclient.*;
7
8 /**
9  * Class that realizes <B>exit</B> action.
10  *
11  * @author Sasa Bojanic
12  * @version 1.0
13  */

14 public class Exit extends ActionBase {
15
16    public Exit (SharkClient workflowClient) {
17       super(workflowClient);
18    }
19
20    public void actionPerformed(ActionEvent e) {
21       actionPanel.getAction(Utils.getUnqualifiedClassName(Disconnect.class)).actionPerformed(null);
22       System.exit(0);
23    }
24
25 }
26
Popular Tags