- Watch Swing tutorial.
- Watch this.
- 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.
- See how to use anonymous classes by studying
LightsWithAnonymousClass.java
- Redo some of last week's exercises using anonymous classes.
- 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)
Subsections
s.danicic@gold.ac.uk
Sebastian Danicic BSc MSc PhD (Reader in Computer Science)
Dept of Computing, Goldsmiths, University of London, London SE14 6NW
Last updated 2015-09-04