title: Alternative to Java's Observable class?
body: <p>I'm coming to Java from the C# world where the Observer pattern is implemented as a first-class language construct with the <code>event</code> keyword.</p>
  
  <p>I see that Java's had the <code>Observable</code> class since the early days, but it clearly has implementation issues and doesn't seem to be widely used.  Thus far I've just been rolling-my-own implementation of the Observer pattern in my Java code but I always can't help but think there must be a better alternative to always turning out this boilerplate code.  There are the Listener classes in Swing but they don't seem appropriate for non-Swing code.</p>
  
  <p>What's the recommended solution for this oh-so-common problem?  Third-party libraries are ok with me.</p>