So I want to create a subclass of JSpinner so that I can hide all the configuration. The problem is when I put this object on JFrame, I get UI not found error.
I can't find out what I missed..
public class Time extends JSpinner {
public Time() {
super();
SpinnerDateModel SpinnerModel = new SpinnerDateModel();
this.setModel(SpinnerModel);
JSpinner.DateEditor dateEditor = new JSpinner.DateEditor(this, "hh:mm a");
this.setEditor(dateEditor);
}
}