We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82acebd commit db44335Copy full SHA for db44335
src/main/java/de/doubleslash/keeptime/view/ManageWorkController.java
@@ -89,6 +89,18 @@ public void initializeWith(final Work work) {
89
}
90
});
91
92
+ endTimeSpinner.getEditor().textProperty().addListener((observable, oldValue, newValue) -> {
93
+ final LocalTimeStringConverter stringConverter = new LocalTimeStringConverter(FormatStyle.MEDIUM);
94
+ final StringProperty text = (StringProperty) observable;
95
+ try {
96
+ stringConverter.fromString(newValue);
97
+ text.setValue(newValue);
98
+ endTimeSpinner.increment(0); // TODO find better Solution
99
+ } catch (final DateTimeParseException e) {
100
+ text.setValue(oldValue);
101
+ }
102
+ });
103
+
104
startTimeSpinner.setValueFactory(new SpinnerValueFactory<LocalTime>() {
105
106
{
0 commit comments