Actually I have developed the TIC TAC TOE application in which user plays with computer my question is I want to have a window displayed first asking whether the user have to play first or the computer. Which should have 2 radio buttons and one yes button and one cancel button and the window should return either user or computer to the program then the game should start accordingly I know how to do it in HTML but not in JAVA I tried some radio button examples but could not find current answer relevant to my question
If the user can decide who is first, I think you can use the raido button swing and it's easy , you need read the tutorial.
Joined: Mar 22, 2005
What specifically are you struggling with? If you have code that shows two radio buttons, and code that checks which of the buttons is selected, then what you're trying to do should be easy, shouldn't it? What do you have so far?