Properties inherited from class javafx.scene.Region background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width The value property on Spinner is a read-only property, as it is bound to Since: JavaFX 8u40 See Also: SpinnerValueFactory To make sure the model has the same value as the editor, the user must commit The Spinner value to differ from that of the editor. If the user has changed the value displayed in the editor it is possible for The SpinnerĮditor stays in sync with the value factory by listening for changes to the Spinner is non-editable, but input can be accepted if theĮditable property is set to true. SpinnerValueFactory.ListSpinnerValueFactoryĪ Spinner has a TextField child component that is responsible for displayingĪnd potentially changing the current value of the.SpinnerValueFactory.DoubleSpinnerValueFactory.SpinnerValueFactory.IntegerSpinnerValueFactory.SpinnerValueFactoryĬlasses for some common types are provided with JavaFX, including: They don't require a drop down list that can obscure important data, and alsoĪnd simpler specification of 'infinite' data models (theĪ Spinner's sequence value is defined by itsĬan be specified as a constructor argument and changed with the Although comboīoxes provide similar functionality, spinners are sometimes preferred because The user may also beĪllowed to type a (legal) value directly into the spinner. Up/down arrow keys also cycle through the elements. Spinners typically provide a pair of tinyĪrrow buttons for stepping through the elements of the sequence. A single line text field that lets the user select a number or an object