public void actionPerformed(ActionEvent e)
if(e.getSource()==btnexit){
JOptionPane.showMessageDialog(null, "exit game");
System.exit(0);}
}
thats what i have got.. can you change my code and...
Type: Posts; User: joshstevens19
public void actionPerformed(ActionEvent e)
if(e.getSource()==btnexit){
JOptionPane.showMessageDialog(null, "exit game");
System.exit(0);}
}
thats what i have got.. can you change my code and...
i have changed the code so it works fine now (no errors) but it does not exit the bandit machine..
if(e.getSource()==btnexit){
JOptionPane.showMessageDialog(null, "exit game");
...
how to make the exit button work so the code i have so far is ..
public void actionPerformed(ActionEvent)}
If(event.getSource()==btnexit{
JOptionPane.showMessageDialog(null, "");...
i am doing a assignment where i have to make a electronic bandit on ecplise.. i need to make
hold buttons
nudge buttons
spin button
exit button
transfer winning button
box showing how much...