Search in sources :

Example 1 with PeriodBoxComposite

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());
    });
}
Also used : BorderPane(javafx.scene.layout.BorderPane) PeriodBoxComposite(com.kyj.fx.voeditor.visual.component.date.PeriodBoxComposite) Button(javafx.scene.control.Button) Scene(javafx.scene.Scene) JFXDateTimePicker(com.jfoenix.controls.JFXDateTimePicker)

Aggregations

JFXDateTimePicker (com.jfoenix.controls.JFXDateTimePicker)1 PeriodBoxComposite (com.kyj.fx.voeditor.visual.component.date.PeriodBoxComposite)1 Scene (javafx.scene.Scene)1 Button (javafx.scene.control.Button)1 BorderPane (javafx.scene.layout.BorderPane)1