I was somewhat surprised to find that JavaFX does not come with a scrollbar component out of the box (if you’re reading this from the future, I’m currently using JavaFX 1.1 with NetBeans 6.5.1.) There are some examples out there for rolling your own — which I haven’t personally tested — such as using a SwingSlider, a component sadly unavailable on the Mobile profile, or a customized mouse-aware Rectangle, but I wanted to create something as near to the desktop experience as I could (easily) manage. If you’re looking for a free vertical scrollbar solution for your JavaFX Mobile application, please read on.
Update: Good news! JavaFX 1.2 has built-in support for scrollbars (and a number of other controls) in the new javafx.scene.control package. These are available in the common profile as well as the desktop profile, so mobile developers now have a set of skinnable GUI controls that should work consistently across the desktop, the web, and mobile devices.
[ ... 4478 more bytes remaining; click "Read entry" to view. ]