SOLVED: Changing different Swing control and their properties dynamically?
So hypothetically, say I have two jTextPanes: tp1 and tp2, and an integer i.
I want a certain piece of text to be printed in either tp1 or tp2 depending on the integer I by putting "tp" + i into a string and using that to search for the swing control. I remember in PASCAL you had to use a loop that searched through every control, but I can't for the life of me figure out how to do it in Java.
This example is basically a very simplified version of what I want to do, but any help understanding the concept behind it would be greatly appreciated.
Thanks for readin',