Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- /**
- * Created by Антон on 10.04.2014.
- */
- public class MyListener implements ActionListener {
- private JLabel Label;
- private boolean Availability;
- MyListener(JLabel label, boolean availability)
- {
- Label = label;
- Availability = availability;
- }
- @Override
- public void actionPerformed(ActionEvent arg0)
- {
- if(Availability)
- Label.setEnabled(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement