Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC305 Lecture 12

CSC305 Lecture 12

Individual Software Design and Development
Observer and Listener II
(202410)

Javier Gonzalez-Sanchez

October 16, 2024
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info o ffi ce: 14 -227

    CSC 305 Individual Software Design and Development Lecture 12. Observers and Listeners II
  2. Lab 1. Cre a te a Jfr a me a

    nd a Jp a nel 2. Dr a w the 9 boxes to represent the TicT a cToe 3. Add MouseListeners to detect clicks on the P a nel 4. Review if the click is inside of a box 5. If so, dr a w a nd X or a 0 on th a t position (one time X, the next O, the next X, etc) Do not worry a bout the g a me logic. The go a l is just a GUI with listeners a nd observers between d a t a a nd view 27
  3. CSC 305 Individual Software Design and Development Javier Gonzalez-Sanchez, Ph.D.

    [email protected] Summer 2024 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.