Skip to content

Commit

Permalink
Modified demo of LocalTimePicker to use 12 hours instead of 24.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Oct 1, 2019
1 parent 3e8c0ff commit 1ed4df3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.dlsc.pickerfx.LocalDatePicker;
import com.dlsc.pickerfx.LocalDateTimePicker;
import com.dlsc.pickerfx.LocalTimePicker;
import com.dlsc.pickerfx.TimeFormat;
import javafx.application.Application;
import javafx.scene.Node;
import javafx.scene.Scene;
Expand All @@ -23,6 +24,8 @@ public void start(Stage stage) {
LocalDateTimePicker localDateTimePicker = new LocalDateTimePicker();
LocalTimePicker localTimePicker = new LocalTimePicker();

localTimePicker.setTimeFormat(TimeFormat.TWELVE_HOURS);

FlowPane flowPane = new FlowPane();
flowPane.setPrefWidth(1200);
flowPane.setHgap(20);
Expand Down

0 comments on commit 1ed4df3

Please sign in to comment.