Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ExceptionSafeActionWrapper.java

Go to the documentation of this file.
00001 
00058 package com.arcle.rmt.j2se.swing.ui;
00059 import java.awt.event.ActionEvent;
00060 import java.awt.Component;
00061 import javax.swing.Action;
00062 
00063 
00075 public class ExceptionSafeActionWrapper extends ComponentOwnedActionWrapper {
00081     public ExceptionSafeActionWrapper(Component owner, Action wrapped) {
00082         super(owner, wrapped);
00083     }
00084 
00085 
00093     public void actionPerformed(ActionEvent e) {
00094         try {
00095             super.actionPerformed(e);
00096         } catch(Exception ex) {
00097             MoreSwingUtilities.showException(getOwnerComponent(), ex,
00098                 "Unhandled exception caught in action: " + getValue(NAME));
00099         }
00100     }
00101 }

Generated on Fri Jun 18 19:51:20 2004 for Arcle Rambutan by doxygen 1.3.5