@Override public void actionPerformed(ActionEvent event){
  String command=event.getActionCommand();
  if (command.equals("BackgroundPaint")) {
    attemptModifyBackgroundPaint();
  }
}

@ Override public void actionPerformed ( ActionEvent event ) { String command = event . getActionCommand ( ) ; if ( command . equals ( "BackgroundPaint" ) ) { attemptModifyBackgroundPaint ( ) ; } }
handles user interactions with the panel .
