Am using a spinner for selecting time and facing the below issue,
StarttimeSpinner = new JSpinner();
Date time = new SimpleDateFormat("HHmmss", Locale.ENGLISH).parse("000000");
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
String dateString = formatter.format(time);
StarttimeSpinner.setModel(new SpinnerListModel(new String[]{dateString}));
This spinner is in a JPanel. When i open the panel i cant able to change values in spinner its getting automatically reassign to dateString value(00:00:00). I can understand it is because of setModel but is there anyway i can Edit the value ?