NumberEditorFormatter nef = new NumberEditorFormatter(); nef.setMinimum(getModel().getMinimum()); nef.setMaximum(getModel().getMaximum()); ftf.setFormatterFactory(new DefaultFormatterFactory(nef));
    public NumberEditor(JSpinner spinner)    {      super(spinner);    }