How can I set the text of a JLabel with a loop? For example:
String cur[]= {"A","B","C"};
JLabel lblA,lblB,lblC;
for(i=0;i < cur.length;i++){
lbl+cur[i].setText("something");
}
what should go in the "lbl+cur[i]" part so it sets the text of the JLabels?
Thanks