you just need something like the following:
for (int i = 0; i < relSize; i++){
viewProfilePanel.add(new JLabel("label"));
}
or if rel contains the string you want to use as labels then use something like:
for (int i = 0; i < rel.length; i++){
viewProfilePanel.add(new JLabel(rel[i]));
}
Main Topics
Browse All Topics





by: CEHJPosted on 2009-10-19 at 10:39:11ID: 25607259
Yes
Select allOpen in new window