Mighty Mouse Handling in JavaFX Script: Examples by Sven
Join the DZone community and get the full member experience.Join For Free
as shown in the javafx sdk packages are taking shape post, the mouseevent class is located in the new javafx.input package. take a look at the check out the javafx script documentation post to examine the mouseevent class, as well as the mouse handler methods in the node class which is located in the javafx.scene package.
sven's second example demonstrates the mouse cursors that are available via constants in the cursor class, also located in the javafx.scene package. here's a screenshot of this program:
sven's examples have full source code and jnlp links, so go check them out and learn some mighty mouse handling. thanks again, sven!
javafx script: dynamic java scripting for rich internet/client-side applications
immediate ebook (pdf) download available at the book's apress site
Opinions expressed by DZone contributors are their own.