0
How to take the value in JSpinner on java swing?
if we use text field, we can use getstring() for take the value that user inputed,, but how to take the value if i use spinner?
1 Réponse
+ 1
To get currently selected value, use:
JSpinner spin =......
var_smthng = spin.getValue();
Further you can use getPreviousValue(); and getNextValue(); to get prev and next values to selected one.