I have an interface with 60 jlabels, named like this: A1 A2 A3 .... A60
The idea is to change the color according to a condition, but I would have to put 60 "if". The idea would be to change the label by means of a string.
The line of code to change the color is this:
But I have the A2 value in a string called "cell", ideally put
Java does not allow this, any idea of how it is done?