if(e.getSource() == choice2) {
if(choice2.getSelectedItem().equals("Monitor")) {
choice2.setBackground(Color.GREEN);
hidebutton++
score++;
}
else {
choice2.setBackground(Color.RED);
}
choice2.setEnabled(false);
}
i have this code here...
why do when i apply this method the score is
incremented to??
would you plzz help me..
whAt is wrong 2 da Code...
4 example i have a button when i pressed it...
it must be the value of hide button and score is 1...
but in my code it shows that the score is 2 and the hide button is 1...
sorry 4 my bad english...