/bundles/plugins-trunk/CommonControls/common/gui/actions/Cancel.java

# · Java · 28 lines · 14 code · 5 blank · 9 comment · 0 complexity · 331b921cf527ba5f1a0fc45b3885b1c5 MD5 · raw file

  1. package common.gui.actions;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4. /**
  5. * An old class that probably shouldn't be used anymore.
  6. *
  7. * @author mace
  8. * @created May 28, 2003
  9. * @modified $Date: 2012-03-13 17:07:11 +0100 (Tue, 13 Mar 2012) $ by $Author: ezust $
  10. * @version $Revision: 21349 $
  11. * @deprecated
  12. */
  13. @Deprecated
  14. class Cancel extends CustomAction {
  15. private JDialog _dialog;
  16. public Cancel(JDialog d) {
  17. super("Cancel");
  18. _dialog = d;
  19. }
  20. public void actionPerformed(ActionEvent e) {
  21. _dialog.dispose();
  22. }
  23. }