View Single Post
  #4 (permalink)  
Old 02-01-2008, 01:37 AM
scuffia's Avatar
scuffia scuffia is offline
Member
 
Join Date: Jan 2008
Location: Cagliari (Italy)
Posts: 7
scuffia is on a distinguished road
Indeed if you do not know the precise number of JLabels, you can use the java.util.ArrrayList class, which allow you to add an object at runtime, each time you want:
Code:
ArrayList<JLabel> array = new ArrayList<JLabel>(); . . . array.add(jLabel1); array.add(jLabel2); array.add(jLabel3);
Usign this object (google it and you'll find how to use it) you have no problem of what you add runtime or not.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote