Week 3

  1. Watch Swing tutorial.
  2. Watch this.

  3. Write a program similar to Lights.java which for each click of the button, instead of displaying traffic lights, draws the successive stages of the `hanging man' in the game of hangman.

  4. See how to use anonymous classes by studying LightsWithAnonymousClass.java

  5. Redo some of last week's exercises using anonymous classes.

  6. Write a graphical version of the `leap year' program, and the `what's your age program' in last year's challenges. (look up JoptionPane in the Sun Java API) (Hint: Addition.java)

Sebastian Danicic BSc MSc PhD (Reader in Computer Science)
Dept of Computing, Goldsmiths, University of London, London SE14 6NW
Last updated 2015-09-04