so i'm trying to create a JButton that closes the JFrame that it is in. here is the button code


JButton buttonClose = new JButton("Close");
buttonClose.setVisible(true);...