How can set Datepicker to take the complett height of the View?

367 views Asked by At

I have a Datepicker in Javafx 8.enter image description here I have used this Code but it not take the komplett Size for the Views

final DatePicker datePicker = new DatePicker(LocalDate.now());
    DatePickerSkin datePickerSkin = new DatePickerSkin(datePicker);
    javafx.scene.Node popupContent = datePickerSkin.getPopupContent();

    datePicker.setMaxHeight(6000.);
    datePicker.setMinHeight(6000.);
    datePicker.setPrefHeight(6000.);
    datePicker.setOnAction((event) -> {
        LocalDate date = datePicker.getValue();
        System.err.println("Selected date: " + date);
    });


    primary1.setTop(popupContent);

I want to make it (Datepicker) fullscreen.

enter image description here

0

There are 0 answers