01: package discRack.actions;
02:
03: import discRack.*;
04:
05: import java.awt.event.ActionEvent;
06:
07: import org.enhydra.dods.DODS;
08:
09: /**
10: * Class that realizes <B>exit</B> action.
11: *
12: * @author Sasa Bojanic
13: * @version 1.0
14: */
15: public class Exit extends ActionBase {
16:
17: public Exit(DiscRack discRack) {
18: super (discRack);
19: }
20:
21: public void actionPerformed(ActionEvent e) {
22: try {
23: DODS.shutdown();
24: } catch (Throwable t) {
25: t.printStackTrace();
26: } finally {
27: System.exit(0);
28: }
29: }
30: }
|