Hi,
I haven't looked at Java for a while. Can someone give me a hand with the following please.
I have added a part of my program below, I just need to close the class and open a new one when a button is pressed if someone can help with that.
// Create Stockroom button
JButton btnStockroom = new JButton("Stockroom");
// Add event handler for OK button
btnStockroom.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(frame,
"You've selected the Stockroom"
);
}
Thanks in advance
Jono