public class JSpinners extends Object
| Modifier and Type | Method and Description |
|---|---|
static JSpinner |
createSpinner(SpinnerModel model,
int fractionDigits)
Create a spinner with the given model, showing the given number
of fraction digits for number models
|
static void |
setSpinnerDraggingEnabled(JSpinner spinner,
boolean enabled)
Set whether the value of the given spinner may be changed with
mouse drags
|
public static JSpinner createSpinner(SpinnerModel model, int fractionDigits)
model - The modelfractionDigits - The fraction digitspublic static void setSpinnerDraggingEnabled(JSpinner spinner, boolean enabled)
spinner - The spinnerenabled - Whether dragging is enabledIllegalArgumentException - If the given spinner does not
have a SpinnerNumberModelCopyright © 2022. All rights reserved.