java.lang.ClassCastException: class java.util.Date cannot be cast to class java.lang.String (java.util.Date and java.lang.String are in module java.base of loader 'bootstrap') What I have tried: this is the code <pre> timeSpinner = new JSpinner( new SpinnerDateModel() ); timeEditor = new JSpinner.DateEditor(timeSpinner, "HH:mm"); timeSpinner.setEditor(timeEditor); timeSpinner.setBounds(330,100,100,30); timeSpinner.setFont(f5); panel.add(timeSpinner);
String ts1= (timeEditor.getFormat().format(timeSpinner.getValue())).toString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)