Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linking RadioButton to class

 
Klaas Vredevort
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic