Advertisement
Guest User

hahahahahaha

a guest
Dec 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // TODO add your handling code here:
  2. if(btnOffOn.isSelected()==true){
  3. btnOffOn.setText("ON");
  4. btnOffOn.setBackground(Color.green);
  5. }else{
  6. btnOffOn.setText("OFF");
  7. btnOffOn.setBackground(Color.red);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement