Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 161129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:09:30+00:00 2026-05-11T11:09:30+00:00

when i play my game i allow the user to click the buttons which

  • 0

when i play my game i allow the user to click the buttons which then sets a o or an x as the label and then each button becomes in active as to not allow the user to clik it again and again

however when i get to 9 goes and its a draw a message box pops up and says draw but i cant seem to get the buttons to restore themselves to the original state to allow for a new round

what could you suggest

edit:

i have no idea why i didnt create a loop to do this cheers guys i will try this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:09:31+00:00Added an answer on May 11, 2026 at 11:09 am

    This is of course hard when you didn’t show us any code, what did you try that didn’t work?

    I would think a plain old loop should do the trick.

    JButton buttons[];  for(JButton b : buttons) {   b.setText('');   b.setEnabled(true); } 

    I hope that is the proper looping syntax, it’s been a while since I worked in Java.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on iPhone game application, in which user can play game and
Anyone know of a good book on Game Interface Design (not game play mechanics;
I am building a turn-based game and would like to allow players to play
I'm trying to build an android app that allows user to play a game
I am trying to write a program which will allow two players to play
So I have an app where you play a game, and at the end
Permutation Game (30 Points) Alice and Bob play the following game: 1) They choose
I'm working on a project for a game I play, and I can't seem
I'm just realizing a little Web-Hangman where users can play the popular game. Now
I am developing a game in android,I want use the services to play and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.