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