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

Anyone know of a good book on Game Interface Design (not game play mechanics;
I'm writing a small agent in java that will play a game against other
A game that I play stores all of its data in a .DAT file.
I have started to play a little with Qt 4. And then I have
Is it possible to add a feature to record the game play within your
I am trying to make an arcade machine. The user will purchase credits, which
I started trying to play with Mono, mostly for fun at the moment. I
I've started to play around with PowerShell and am trying to get it to
I want to play around with silverlight without having to buy a Visual Studio
How can I play audio (it would be like a 1 second sound) from

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.