so I've this welcome frame where I've the following things:
i) Two radio buttons- single, multi
ii) Two labels- Player1 Name, Player2 Name
iii) Two text boxes receiving the names
iv) Button 'Start !'
what I want the program to do is when the user clicks the radio label 'single', the field for player2 disappears and user will enter Player1 name only and when the user clicks the 'multi' radio label, the fields for player2 and player1 reappear and has to input both the names. I have been able to program till here.
Now, what I want it to do is, if 'single' is selected and the field is filled when I press the 'Start !' button, I want it to call the class 'Yahtzee' and it 'multi' is selected, I want it to call the class 'DoubleYahtzee' when the 'Start !' button is clicked.
Thanks in advance!