wood burning stoves*
The moose likes Beginning Java and the fly likes newbie question handling events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbie question handling events" Watch "newbie question handling events" New topic
Author

newbie question handling events

gee mann
Greenhorn

Joined: May 18, 2002
Posts: 12
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

Joined: Jan 13, 2002
Posts: 479
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?


Younes
By constantly trying one ends up succeeding. Thus: the more one fails the more one has a chance to succeed.
 
Consider Paul's rocket mass heater.
 
subject: newbie question handling events
 
Similar Threads
syntax error using a method
syntax error defining a method
Removing elements in an object
no such method error
Problem clearing and resetting a JPanel