/** * Processes the specified event for this object. If the event is an instance of <code>ActionEvent * </code> then the <code>processActionEvent()</code> method is called. Similarly, if the even is * an instance of <code>ItemEvent</code> then the <code>processItemEvent()</code> method is * called. Otherwise the superclass method is called to process this event. * * @param event The event to process. */ protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); super.processEvent(event); }