Writing Event Listeners in Oracle's Tutorial has numerous examples.

In constructing your own examples (which is the way to go) start simple: a button whose clicks cause a label to change, a...