package caltool.view.caltool; import java.awt.event.*; /**** * * Class GenericCancelButtonListener implements the generic action of a cancel * button of closing the window to which the cancel button is attached. * */ public class GenericCancelButtonListener implements ActionListener { public void actionPerformed(ActionEvent e) { ((mvp.View) e.getSource()).hide(); } }