• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Question about the printing of a game.

 
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
Posts: 12760
51
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: 24635
56
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: 24635
56
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
 
A berm makes a great wind break. And Iwe all like to break wind once in a while. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!