Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import javax.swing.*;
  2. import java.awt.event.ActionEvent;
  3. import java.awt.event.ActionListener;
  4.  
  5. /**
  6. * Created by Антон on 10.04.2014.
  7. */
  8. public class MyListener implements ActionListener {
  9. private JLabel Label;
  10. private boolean Availability;
  11. MyListener(JLabel label, boolean availability)
  12. {
  13. Label = label;
  14. Availability = availability;
  15. }
  16. @Override
  17. public void actionPerformed(ActionEvent arg0)
  18. {
  19. if(Availability)
  20. Label.setEnabled(true);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement