I want to use the touch-enabled controls described in http://docs.oracle.com/javase/8/javafx/user-interface-tutorial/embed.htm. I'm building my application on a Windows 8
tablet, but the ScrollPanes
are desktop-style, i.e. with scrollbars
and no reaction to finger-dragging. How do I tell JavaFX
that I'm on a mobile platform?
Edit: I just realized that the standard, desktop-style ScrollPane does react to finger-dragging, but it doesn't look like the example one in the link above.
Solution: the features can be enabled by setting -Dcom.sun.javafx.isEmbedded=true and -Dcom.sun.javafx.touch=true