ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue());
    public DefaultEditor(JSpinner spinner)    {      this.spinner = spinner;            spinner.addChangeListener(this);    }