CJCoding With Joseph
15free / daySign inCreate account

Designing the Game Window - STEP 2

Tic Tac Toe Game

Now, let’s set up the canvas, or game window, where the Tic-Tac-Toe game will appear.

Let's first create a private JFrame class member variable at the top of our class to use in the project.

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 27 more lessons in Mastering Java Swing.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • Mock exams marked by hand, with feedback
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel anytime.