f.setVisible(false);
frame.setVisible(false);
                                public void actionPerformed(ActionEvent event) {                                    desktop.setBackground(oldColor);                                    f.setVisible(false);                                }