use of com.kyj.fx.voeditor.visual.component.date.PeriodBoxComposite in project Gargoyle by callakrsos.
the class PeriodBoxExam method start.
/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane pane = new BorderPane();
PeriodBoxComposite value = new PeriodBoxComposite();
JFXDateTimePicker timePicker = new JFXDateTimePicker();
Button btnGet = new Button("Get");
pane.setBottom(btnGet);
pane.setCenter(value);
pane.setTop(timePicker);
primaryStage.setScene(new Scene(pane));
primaryStage.show();
btnGet.setOnAction(ev -> {
System.out.println(value.getStartDay());
System.out.println(value.getStartDate());
System.out.println(value.getStartTime());
});
}
Aggregations