JJ logo

JJ Game Programming Java Examples



  1. GuessColor An easy game to play and modify (View the code)

  2. MemoryGame (WARNING: Advanced code) arrays of objects (View the code)

  3. GraphicDisplayOfFontStyleAndSize Display text graphics (there are no buttons, just a static graphics message for you) (View the code)

  4. GraphicDisplayOfTextFieldContents TextField and Graphics (View the code)

  5. GraphicDisplayOfMouseClickLocation Locate mouse click (View the code)

  6. MoveBlueSquareToMouseClick Mouse click moves blue square (View the code)

  7. WhatADrag Click and drag blue square (View the code)

  8. BlueBallInBox (WARNING: Longer example) Snap blue ball into box (View the code)

  9. BothGraphicsAndButtonsInJJ (WARNING: Nested classes) Both Graphics and Buttons (View the code)


Java Source Code for above game programming examples

1. GuessColor


2. MemoryGame


3. GraphicDisplayOfFontStyleAndSize


4. GraphicDisplayOfTextFieldContents


5. GraphicDisplayOfMouseClickLocation


6. MoveBlueSquareToMouseClick


7. WhatADrag


8. BlueBallInBox


9. BothGraphicsAndButtonsInJJ

Want more information about JJ?

Teachers: you can now apply for JJ accounts for your Java class.
For more information, see
PublicStaticVoidMain

Email us at help @PSVM .org for more information