Class DatepickerExampleController.java package javafxapplication27; import com.jfoenix.controls.JFXDatePicker; import java.net.URL; ...
Class DatepickerExampleController.java
package javafxapplication27;
import com.jfoenix.controls.JFXDatePicker;
import java.net.URL;
import java.time.LocalDate;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
/**
* FXML Controller class
*
* @author amir
*/
public class DatepickerExampleController implements Initializable {
@FXML
private JFXDatePicker date;
@FXML
void getdate(ActionEvent event) {
System.out.println(date.getValue().toString());
}
@Override
public void initialize(URL url, ResourceBundle rb) {
date.setValue(LocalDate.of(2019,8,10));
}
}
COMMENTS