Im not sure exactly what you meant by starting a new thread. Do you mean start it inside:
private static class A1 implements ActionListener{
public void actionPerformed(ActionEvent e){
...
Type: Posts; User: Shivam24
Im not sure exactly what you meant by starting a new thread. Do you mean start it inside:
private static class A1 implements ActionListener{
public void actionPerformed(ActionEvent e){
...
never mind they un-align when i post the code
By whole thing, I mean that I want the whole program to run again and again as long as you keep clicking Button A1 and it to exit when you click Button B1.
Here is my revised code:
I think i got...
I want to loop the whole program so that if you click on button A, the whole thing restarts and the buttons shift positions. If you click button B, the program exits.
Alright i think this is what...
please someone respond!
im trying to create a game where there are two buttons and you have to click the one with the even number to continue or else you lose. I need help on how to make it loop. I am a noob at java...