📅  最后修改于: 2022-03-11 14:57:47.362000             🧑  作者: Mango
// Current value, Min value, Max value, Step
SpinnerNumberModel spinnerModel = new SpinnerNumberModel(5, 0, 10, 1);
// In this example, Min is 0, Max is 10, Step/Increment is 1, and 5 is the set value
JSpinner spinner = new JSpinner(spinnerModel);