I am working on a JavaFX form. The form is supposed to take the Value and add it to a data base. Whenever I try to get the value by .getValue
it creates an error
Incompatible Types: Object cannot be converted to Int
Here is the FXML Code:
<Spinner fx:id="spinner" layoutX="494.0" layoutY="528.0" maxWidth="100.0" minWidth="100.0" prefWidth="100.0">
<valueFactory>
<SpinnerValueFactory.IntegerSpinnerValueFactory min="0" max="30" initialValue="20" amountToStepBy="1"/>
</valueFactory>
</Spinner>
Java Code:
Spinner mySpinner=(Spinner) spinner;
int value = mySpinner.getValue;
Thanks for your help