• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about the printing of a game.  RSS feed

 
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making a TicTacToeGUIGame. When I hit the run button on Eclipse, the Java box pops up, saying Java Tic-Tac-Toe, but the game doesn't show. That tells me that for some reason the game is not being written. What might cause this to happen? At least please tell me what to look for. I have no errors showing. I have narrowed it down to the Cell board, but there are no errors showing. When I try to run the game from the Cell board, it states terminated in Cell1. That leads me to think it is in the cell board. The Cell is were the super.paintComponent is located. Any Ideas???
 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nobody here has a clue what your code looks like, so there is no way anybody here can help you with your question as stated. There are hundreds of things that COULD be wrong. All anyone here might be able to do is guess, which would be a waste of everyone's time.
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok here is my code

Cell



Main
 
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently your frame contains only a Board component, whose size when displayed is zero. At least that's what I think your description meant -- you're seeing a frame with nothing in it, right? So that could mean that there's no room for anything inside the frame, or that there's room for something but it's all white. At any rate what you're seeing inside the frame is the Board. So you're going to have to look at the Board code, if you have access to it, to find out why that is.
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Here is the board code.

Board

 
Paul Clapham
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aha. And what exactly does line 34 of that posted code do?
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks. Line 34 I thought it was adding cells [r] and [c]. Am I adding them twice or is it canceling them out ? Thanks Danny
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!