This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes missing components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "missing components" Watch "missing components" New topic
Author

missing components

f. nikita thomas
Ranch Hand

Joined: Mar 02, 2008
Posts: 87
hate to bother you again, but this is someone else's code and i haven't done this in awhile. the JCheckbox's in the first group are missing. thanks in advance.



Imagination is more important than knowledge "Albert Einstein"
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43984
    
  33
Difficult to help without knowing what you are looking for. This thread would sit better on the Swing forum: moving,
f. nikita thomas
Ranch Hand

Joined: Mar 02, 2008
Posts: 87
the problem is in panel1 the JCheckBox's are not visible. i "think" its a Layout issue...
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
I hope that this is just sample code, that this is not your program, because if it is, you need to get rid of all the static declarations. The only thing that should be static here is the main method.

Anyway, your problem: you can't add the same component to more than one container. If you do this, it will only show in the last container it was added to.
f. nikita thomas
Ranch Hand

Joined: Mar 02, 2008
Posts: 87
THANK YOU!

yes this is 'not' my code, this is someone i am helping. i really need to take him to the woodshed on his coding style and logic. thanks again. take care.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43984
    
  33
pete stein wrote: . . .
Anyway, your problem . . .
Thank you for sorting that out
 
Have you checked out Aspose?
 
subject: missing components
 
It's not a secret anymore!