class DownDialog implements ActionListener { public void actionPerformed(ActionEvent e) { e.getComponent().getParent().setVisible(false); } }