posted 24 years ago
Matthew,
The easiest way to probably do this is to have an array of Labels and an array of Strings:
<code>
Label example[];
String words[] = { "ex1", "ex2", "ex3", "ex4", "ex5", "ex6" };
example = new Label[words.length];
for ( int i = 0; i < words.length; i++ )
{
example[i] = new Label( words[i] );
}
</code>
HTH,
Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.