I have a problem with JSpinner
. I use the time format in the counter "hh:mm:ss,msmsms"
. When I go to increase the time with the mouse without any choice in the counter format, I do not select any part of the time, for example hours, minutes, seconds or milliseconds, it always increases the default hours in hours.
I want to give this default choice for the second tool, when I am going to increase or decrease the time with the mouse, it works in the second part.
eg.
01:05:08,102
After you press the counter status, the following time will appear.
01:05:09,102
This is the code:
Start_time_jSpinner = new javax.swing.JSpinner(); Start_time_jSpinner.setModel(new SpinnerDateModel()); Start_time_jSpinner.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); Start_time_jSpinner.setEditor(new JSpinner.DateEditor(Start_time_jSpinner, "HH:mm:ss,SSS"));
source share