Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JButton okButton = new JButton("OK");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- frame.setVisible(false);
- newFrame.setVisible(true);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement