title: How to use the java.beans package to replace the (now deprecated) Observable and Observer?
body: <p>With the arrival of Java 9, the <code>Observable</code> class and the <code>Observer</code> interface are now deprecated.</p>
  
  <p>The <a href="http://download.java.net/java/jdk9/docs/api/java/util/Observable.html" rel="noreferrer"><code>Observable</code> javadoc</a> states:</p>
  
  <blockquote>
    <p>[Observable] and the Observer interface have been deprecated. The event model supported by Observer and Observable is quite limited, the order of notifications delivered by Observable is unspecified, and state changes are not in one-for-one correspondence with notifications. For a richer event model, consider using the java.beans package.</p>
  </blockquote>
  
  <p>It recommends to use the <code>java.beans</code> package, but how does one go about using it to create an event-handler to mimic the Observer Pattern?</p>