Forums Register Login

list of component not displayed

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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

+Pie Number of slices to send: Send
We are not mind readers. You still have not provided enough information.

Post your SSCCE that demonstrates the problem.
+Pie Number of slices to send: Send
all the code



other class

+Pie Number of slices to send: Send
Did you add any debug code to make sure the loop is being executed?
+Pie Number of slices to send: Send
initialization problem.....

lblJournee size is 0.... so the loop is not executed......

+Pie Number of slices to send: Send
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


reply
reply
This thread has been viewed 1510 times.
Similar Threads
enabling & disabling menuitems
Syntax problem
what layouts to use
iterate problem in struts2
a challenge; contest if you will
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:39:10.