01: package jtaDiscRack.actions;
02:
03: import jtaDiscRack.*;
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(JtaDiscRack jtaDiscRack) {
17: super (jtaDiscRack);
18: }
19:
20: public void actionPerformed(ActionEvent e) {
21: jtaDiscRack.setCentralPanel(new JPanel());
22: this .setEnabled(false);
23: jtaDiscRack.getAction("Login").setEnabled(true);
24: jtaDiscRack.getAction("Register").setEnabled(true);
25: jtaDiscRack.setTitleUser(null);
26: jtaDiscRack.requestFocus();
27: }
28: }
|