Changing a piece of code
Posted on 2004-05-01
Hello everyone out there, I have another question.
What is needed in this code.
Is to make this code be able to add the actioncommand of a radio button that will be set to a audiofile. The radio buttons are not created at this time. But that doesn't matter in this example.
public void actionPerformed(ActionEvent e)
JColoredButton button = (JColoredButton)e.getSource();
int index = defensiveMovesArrayList.indexOf(button) ;
if (index > -1)
defensiveMovesArrayList.remove(index); // removal of button
defensiveMovesArrayList.remove(index); // removal of timing.wav