Writing event handlers in Java is easy, which is nice. Unfortunately, in my experience creating custom events has been repetitive and generates much messy code. I also don't like the idea of using the AWT or Swing event queues. So after a few projects containing ridiculous boilerplate I came up with Javent . This small library cleans up the code required to make event systems, and is generally nicer than hacking up a solution from scratch yourself every time.
Please note that Javent is fairly young, and I would happily accept advice.
Try it out and see what you think!
posted 11 years ago
If anyone is using Javent, I recommend trying the new version (0.02), as it features a nicer way of creating transmitters. Now you can basically set up an entire system by creating a single Listener interface ! Notes on usage are available on the wiki.