01: package jtaDiscRack.actions;
02:
03: import jtaDiscRack.*;
04: import org.enhydra.dods.DODS;
05:
06: import java.awt.event.ActionEvent;
07:
08: /**
09: * 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(JtaDiscRack jtaDiscRack) {
17: super (jtaDiscRack);
18: }
19:
20: public void actionPerformed(ActionEvent e) {
21: try {
22: DODS.shutdown();
23: } catch (Throwable t) {
24: t.printStackTrace();
25: } finally {
26: System.exit(0);
27: }
28: }
29: }
|