else if ( source == getfitToViewButton() )
} else if ( source == getfitToViewButton() ){
    public void actionPerformed(ActionEvent event)    {	String command = event.getActionCommand();	Object source = event.getSource();		Debug.out("CB:aP command " + command);	if ( !(source instanceof JButton || source instanceof JCheckBox) ) {	    OutputHandler.out("CB:aP Error: unknown bean source: " + source);	    return;	}	  if (command.equals ("Zoom In")) {		gc.zoomIn ();		return;	  }	  if (command.equals ("Zoom Out")) {		gc.zoomOut ();		return;	  }	try {	    if ( source == getplusButton() )		gc.setVisibleAmount(gc.getVisibleAmount() + 1);	    else if ( source == getminusButton() )		gc.setVisibleAmount(gc.getVisibleAmount() - 1);	    else if ( source == getplusFiveButton() )		gc.setVisibleAmount(gc.getVisibleAmount() + 5);	    else if ( source == getminusFiveButton() )		gc.setVisibleAmount(gc.getVisibleAmount() - 5);	    else if ( source == getfitToViewButton() )		gc.fitToView();	    else if ( source == getearliestButton() )		gc.setVirtualXLocation(taskModel.getMinTaskStart() - TaskGanttChart.DAYLEN);	    else if ( source == getlatestButton() )		gc.setVirtualXLocation(taskModel.getMaxTaskEnd() - gc.getVirtualXSize() + TaskGanttChart.DAYLEN);	    else if ( source == getshowPrefs() )		gc.getLozengePanel().setLayerActive(0, getshowPrefs().isSelected());	    else		OutputHandler.out("CB:aP Error: unknown JButton source: " + source);	}	catch ( Exception e ) {	    OutputHandler.out(ExceptionTools.toString("CQ:aP", e));	}	catch ( Error e ) {	    OutputHandler.out(ExceptionTools.toString("CQ:aP", e));	}    }