Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

help me *_*!

 
leo tien
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to implement such function:
when i press a button , it can add a CheckBox on the panel and refresh it on the frame...
who can help me ....thanks a lot..
 
Mag Hoehme
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Leo,
one remark first: the topic "help" is not very useful. You improve your chances of getting help when you name your topic like "Refreshing checkbox".
I hope I got your question right: Normally you do not need to refresh a checkbox. It will be automatically checked/unchecked when you call setSelected (true/false) on the checkbox.
Hope this helps.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually my question is why do you need a checkbox to appear on the Panel only after you click a button? What is the checkbox for?
Mark
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!