• Post Reply Bookmark Topic Watch Topic
  • New Topic

Action Listeners

 
Meggsy Maine
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have code with a Check Box in an applet.
Even when the box is checked the the output still says it is false.

Meggsy


[ September 06, 2003: Message edited by: Meggsy Maine ]
[ September 06, 2003: Message edited by: Meggsy Maine ]
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Meggsy
I found this same question from you on 'advanced'/'intermediate' forum I guess where I replied as the code you posted didn't come out properly.
Anyways, here it seems to be readable so I would raise couple of questions.
1. Which checkbox are you interested in to check if it is selected?
2. I see a actionlistener that has if ( standardSelected ) condition but that boolean var is never set to false/true on any checkbox selection event. Why?
3. I see the GoldCard checkbox has a ItemListener and setting some GoldCardSelected flag true but you never seem to use that in your action listener. What exactly you want to do here?
Please try to explain your problem more elaborately by defining which checkbox you want to keep watch on, where exactly you are facing issue.
Regards
Maulin
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be a Swing question so I am moving it there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!