Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

missing components

 
f. nikita thomas
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the problem is in panel1 the JCheckBox's are not visible. i "think" its a Layout issue...
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pete stein wrote: . . .
Anyway, your problem . . .
Thank you for sorting that out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic