@Override public void actionPerformed(ActionEvent event){
  String command=event.getActionCommand();
  if (command.equals("BackgroundPaint")) {
    attemptBackgroundPaintSelection();
  }
 else   if (command.equals("OutlineStroke")) {
    attemptOutlineStrokeSelection();
  }
 else   if (command.equals("OutlinePaint")) {
    attemptOutlinePaintSelection();
  }
 else   if (command.equals("Orientation")) {
    attemptOrientationSelection();
  }
 else   if (command.equals("DrawLines")) {
    attemptDrawLinesSelection();
  }
 else   if (command.equals("DrawShapes")) {
    attemptDrawShapesSelection();
  }
}

@ Override public void actionPerformed ( ActionEvent event ) { String command = event . getActionCommand ( ) ; if ( command . equals ( "BackgroundPaint" ) ) { attemptBackgroundPaintSelection ( ) ; } else if ( command . equals ( "OutlineStroke" ) ) { attemptOutlineStrokeSelection ( ) ; } else if ( command . equals ( "OutlinePaint" ) ) { attemptOutlinePaintSelection ( ) ; } else if ( command . equals ( "Orientation" ) ) { attemptOrientationSelection ( ) ; } else if ( command . equals ( "DrawLines" ) ) { attemptDrawLinesSelection ( ) ; } else if ( command . equals ( "DrawShapes" ) ) { attemptDrawShapesSelection ( ) ; } }
handles user actions generated within the panel .
