I have one Close button in buttonsPanel. I want to close this applet window on clicking the close button. The action events are handled by a different class ToolBoxListener which implements ActionListener.