This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie question handling events

 
gee mann
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have two inner classes
class StartGameButtonListener implements ActionListener and
class HitButtonListener implements ActionListener
When I click on the startGameButton it works, it removes 2 cards from the deck and displays them in the textfield.
But when I click on the hitButton nothing happens.
Here is a small section of the code:

Thanks gee mann
[ June 08, 2002: Message edited by: gee mann ]
 
Younes Essouabni
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
there is not much code to see exactly, what's happening.
But, there is 2 questions. Don't you have to shuffle() the deck in the HitButtonListener()?
Why are you creating a new final JTextField in your HitButtonListener()?
Can u send me the code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic