01: package discRack.actions;
02:
03: import discRack.*;
04:
05: import javax.swing.*;
06: import java.awt.event.ActionEvent;
07:
08: /**
09: * Class that realizes <B>login</B> action.
10: *
11: * @author Sasa Bojanic
12: * @version 1.0
13: */
14: public class Logout extends ActionBase {
15:
16: public Logout(DiscRack discRack) {
17: super (discRack);
18: }
19:
20: public void actionPerformed(ActionEvent e) {
21: discRack.setCentralPanel(new JPanel());
22: this .setEnabled(false);
23: discRack.getAction("Login").setEnabled(true);
24: discRack.getAction("Register").setEnabled(true);
25: discRack.setTitleUser(null);
26: discRack.requestFocus();
27: }
28: }
|