I used the following code
JButton b = new JButton();
b.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0)
{...
Type: Posts; User: Souperk
I used the following code
JButton b = new JButton();
b.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0)
{...
Thank you I made it work with 2 new Action Listener.
if you mean this
JFrame frame = new JFrame();
frame.setVisible(true);
frame.setVisible(false);
i tried that
First of all, sorry for not specifying my question.
Now my question: How can i set invisible a frame when a press a button.
I hope this will help you to help me.
Thanks in advance,
Kostas
Hello!
I want to make a program which
1) will open a frame with a button.
2) When I press the button it will open a new frame with another button.
3)When I press the button of the second frame I...