| Author |
list of component not displayed
|
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
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
Joined: May 03, 2008
Posts: 4202
|
|
|
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.
|
luck, db
There are no new questions, but there may be new answers.
|
 |
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
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
Ranch Hand
Joined: Jun 13, 2009
Posts: 1808
|
|
We are not mind readers. You still have not provided enough information.
Post your SSCCE that demonstrates the problem.
|
 |
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
all the code
other class
|
 |
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1808
|
|
|
Did you add any debug code to make sure the loop is being executed?
|
 |
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
initialization problem.....
lblJournee size is 0.... so the loop is not executed......
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
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.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: list of component not displayed
|
|
|