Mighty Mouse Handling in JavaFX Script: Examples by Sven
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!
Jim Weaver
JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications
Immediate eBook (PDF) download available at the book's Apress site
| Attachment | Size |
|---|---|
| _mighty_mouse.jpg | 55.37 KB |
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)







