0

public void setButtonLabel(int item, String text) { if (item==0) btn1.setText(text); else if (item==1) btn2.setText(text); else if (item==2) btn3.setText(text); else if (item==3) btn4.setText(text); else if (item==4) btn5.setText(text); System.out.print("Invalid: button does not exist");

}

this is my code for button lable, i dont get an error but it doesnt run and i get an error "at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)"

Share a link to this question (includes your user id)
| edit | close | undelete |

Browse other questions tagged or ask your own question.