Alice in Action with Java6 The Right Door How to handle a mouse event –Choose or define a method Define a method when responsive behavior is complex –Create an event that invokes the handler Enabling the right door to respond to a mouse event –Add When the mouse is clicked on something –Specify castle.door1 as the event source –Use a turn() message to handle the event
{}