Anonymous
public text v1 · immutablemake the JFrame:
JFrame frame2 = new JFrame("LOLOL");
frame2.setVisible(false);
And add the actionlistener for your button:
YourButton.addActionListener(new ActionListener() {
frame2.setVisible(true);
});
make the JFrame:
JFrame frame2 = new JFrame("LOLOL");
frame2.setVisible(false);
And add the actionlistener for your button:
YourButton.addActionListener(new ActionListener() {
frame2.setVisible(true);
});