Here it is:
ChangeListener listener = new ChangeListener() {
public void stateChanged(ChangeEvent evt) {
JSpinner spinner = (JSpinner)evt.getSource();
SpinnerModel dateModel = spinner.getModel();
// Get the new value
Object value = spinner.getValue();
// System.out.println("Source
Calendar cal = jCal.getCalendar();
cal.setTime((Date)(spinner
cal.setTime(jCal.getDate()
// cal.set
System.out.println("Source
}
};
Main Topics
Browse All Topics





by: CEHJPosted on 2009-04-20 at 06:57:18ID: 24184612
>>At the moment when I assign the selected time to the JDataChooser modifies the Year to 2001 and I dont want that.
How are you doing that? Please post code