Exit.java :  » Database-ORM » tro-community-7.2-1 » discRack » actions » Java Open Source

Java Open Source » Database ORM » tro community 7.2 1 
tro community 7.2 1 » discRack » actions » Exit.java
package discRack.actions;

import discRack.*;

import java.awt.event.ActionEvent;

import org.enhydra.dods.DODS;

/**
 * Class that realizes <B>exit</B> action.
 *
 * @author Sasa Bojanic
 * @version 1.0
 */
public class Exit extends ActionBase {

   public Exit (DiscRack discRack) {
      super(discRack);
   }

   public void actionPerformed(ActionEvent e) {
      try {
         DODS.shutdown();            
     } catch (Throwable t) {
         t.printStackTrace();
     } finally {
         System.exit(0);
     }
   }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.