December 3rd, 2005

ton o' clue

Ugh.

As I was doing my reading for the unit six of my Oxford course, I started getting a sinking feeling. They were showing how GUI programming in Java worked, and as I thought ahead, the only way I could think of for them to handle an event was one I didn't want to contemplate...

And then it happened. My worst nightmare came true.

class StopButtonListener implements ActionListener {
    public void actionPerformed (ActionEvent e) {
        System.exit(0);
    }
}

My. Brain. Hurts.