<p>How does the event creation and handling work in Java Swing?</p>

There's a tutorial on eveng handling here:
http://java.sun.com/docs/books/tutorial/uiswing/events/index.html
It's about Swing. If that doesn't work maybe you could be a bit more specific?