http://weelookang.blogspot.sg/2010/06/ejs-open-source-micrometer-java-applet.html