Lecture 26
8
Changing the message
•In JOIPanel: change the message and ask the system to repaint:
•51 public void changeMessage()
•52 {
•53   currentMessage =
•54      currentMessage.equals(MESSAGE1) ? MESSAGE2 : MESSAGE1;
•55   this.repaint();
•56 }