setEnabled() on subclassed JSpinner isn't working

I'm subclassing a JSpinner object and attempting to overload the setEnabled() method, but I'm having trouble enabling the widget after it's been disabled. Calling setEnabled(false) seems to work fine, but setEnabled(true) does not.

publicvoid setEnabled(boolean b)

{

//boolean on = false;

boolean on = b;

//if ((b == true) && (null != _regulator))

//on = _regulator.isEnabled();

//else

//on = b;

//System.out.println("setEnabled(" + (on ? "true" : "false") + ")");

super.setEnabled(on);

this.getEditor().setEnabled(on);

((JSpinner.NumberEditor)(this.getEditor())).getTextField().setEditable(on);

}

What am I forgetting to do? Any ideas?

thanks in advance

[1142 byte] By [orzechowskida] at [2007-10-3 4:05:40]
# 1
> overload the setEnabled() methodI think you don't need to do that.Why don't you simply call original setEnabled()?
hiwaa at 2007-7-14 22:05:01 > top of Java-index,Desktop,Core GUI APIs...
# 2
because it didn't work. In the code there's a call to super.setEnabled() , which didn't seem to do anything.
orzechowskida at 2007-7-14 22:05:01 > top of Java-index,Desktop,Core GUI APIs...