private void contactButton_actionPerformed(ActionEvent e) { this.setVisible(false); Contact contact = new Contact(); contact.setVisible(true); }