Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Array of Labels

895675Mar 17 2013 — edited Mar 17 2013
Is there any way to create an array of Label? Because I tried this way, but it did not work.
...
Label Label[] = new Label[10];
Label[0].setText("Label 1");
Label[1].setText("Label 2");
.....
Thanks!

Edited by: 892672 on 17/03/2013 18:08

Edited by: 892672 on 17/03/2013 18:10

Edited by: 892672 on 17/03/2013 18:10
This post has been answered by James_D on Mar 17 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2013
Added on Mar 17 2013
1 comment
693 views