Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: TIC-TAC-TOE GAME

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    8
    My Mood
    Devilish
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default TIC-TAC-TOE GAME

    hey guys i am trying to make a tic tac toe game in java just to get a grip on what i have learned in java so far.i have made a method for actionlistener,winlosecondition and displayresult.i am having problem in displaying the result for the winner.can anyone tell me how should i display the result on the same grid layout as the tictactoe game board without disturbing the button?
    here is also an attachment of my code.

    tictactoe.txt


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,170
    My Mood
    Hungover
    Thanks
    141
    Thanked 599 Times in 514 Posts

    Default Re: TIC-TAC-TOE GAME

    That's not how this works. Read the link in my signature on asking questions the smart way, post an SSCCE with a specific question, and we can go from there.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: TIC-TAC-TOE GAME

    how should i display the result on the same grid layout as the tictactoe game board without disturbing the button?
    Allocate a place in the GUI for a label where you can display game status messages.
    Or use a JOptionPane to display the message.

Similar Threads

  1. Need Help with Game
    By Shivam24 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 18th, 2011, 03:58 PM
  2. Help me with My Game.
    By jtvd78 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 13th, 2011, 04:14 PM
  3. Game !
    By Ahmed.Ibrahem in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 6th, 2011, 07:01 PM
  4. Game 3x3
    By Koren3 in forum Algorithms & Recursion
    Replies: 1
    Last Post: December 20th, 2009, 07:43 PM
  5. Job offers to program Hobo Wars
    By MooncakeZ in forum Paid Java Projects
    Replies: 7
    Last Post: September 17th, 2009, 09:41 PM