Exceptions
 
Action listeners cause methods to be called outside of your application start and stop methods. Therefore, you must include exception-handling code inside the ActionListener implementation if you want to respond to exceptions. In some methods called before an event, propagating an exception out of your method will cancel the impending event.
Was this helpful?