This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Linking RadioButton to class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linking RadioButton to class" Watch "Linking RadioButton to class" New topic

Linking RadioButton to class

Klaas Vredevort

Joined: Dec 27, 2005
Posts: 29
Hey guys

Listen I need some help. I have two classes, one an applet with RadioButtons in a panel. The other is a File Reader. It is a Hangman game with four files containing words. The user chooses a category from which the random word is called.

I want to link the RadioButton to the category. I will paste the code (both classes) entirely and then tell you at which line the category is called, as well as the RadioButtons.

And the rest...

Klaas Vredevort

Joined: Dec 27, 2005
Posts: 29
The Buttons can be found in init()

and I think the categories are quite straightforward. It asks for inputCategoryChoice and then it takes that to read the file. The files are called 1.txt, 2.txt etc
I agree. Here's the link:
subject: Linking RadioButton to class
Similar Threads
Can somebody show me how to implement buttons?
Trouble reading large file
Updating the _ _ _ _ _ in a hangman game?
Small problem with arrays in Hangman java game
problems w/ JCheckBox's and TableModel