Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TODO add your handling code here:
- if(btnOffOn.isSelected()==true){
- btnOffOn.setText("ON");
- btnOffOn.setBackground(Color.green);
- }else{
- btnOffOn.setText("OFF");
- btnOffOn.setBackground(Color.red);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement