Hello all, I couldn't find anything under "control array(s)", so I hope you can answer this for me.
Is it possible to put controls in arrays (ie,
public static someSortOfDataType[] myArray = {jLabel1,jLabel2,etc};
), and then modify them (myArray[1].setText)? If so, what sort of data type would the array be?
I am aware of a fairly long winded bit of code that creates the controls at runtime (which would be a little annoying to use), but I was wondering if there was another way.
Thanks in advance.