I just started learning Java! I am trying to create an array of JLabels. Is this possible? I cannot seem to get the code right. I plan to have them all display the same icon.
I tried this code to declare the array, but it is most certainly incorrect:
static JLabel[] labelname = new JLabel [20] (imageIconHere);
Help?