mark smith
,
Ranch Hand
Jul 03, 2011 07:48:41
hi
in a class who extends a JPanell, i have a list of JLabe
this class is added to a JFramel
the jframe is displayed but not the jlabel
in the constructor of the class i have
any idea?
thanks
Darryl Burke
,
Bartender
staff
Jul 03, 2011 08:37:39
Insufficient information. Without knowing to what Container class you are adding the JLabels, and what Layout Manager that container has, I wouldn't want to guess at the reason.
mark smith
,
Ranch Hand
Jul 03, 2011 08:51:23
Darryl Burke wrote: Insufficient information. Without knowing to chat Container class you are adding the JLabels, and what Layout Manager that container has, I wouldn't want toguess at the reason.
like i wrote, the container class is a JPanel
Rob Camick
,
Rancher
Jul 03, 2011 09:26:13
We are not mind readers. You still have not provided enough information.
Post your SSCCE that demonstrates the problem.
mark smith
,
Ranch Hand
Jul 03, 2011 09:37:49
all the code
other class
Rob Camick
,
Rancher
Jul 03, 2011 10:03:00
Did you add any debug code to make sure the loop is being executed?
mark smith
,
Ranch Hand
Jul 03, 2011 10:04:29
initialization problem.....
lblJournee size is 0.... so the loop is not executed......
Rob Spoor
,
Sheriff
staff
Jul 03, 2011 13:33:24
Which makes sense since you loop to the size of your List, not the size of your array. And at that time, the List is of course still empty.
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com