PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Java | 28 lines | 14 code | 5 blank | 9 comment | 0 complexity | 331b921cf527ba5f1a0fc45b3885b1c5 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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. }