Look at the Java SE doc for the different Events it has and model yours after them.

Did you ask Google: create custom java event


Also see the Observable class.