/**
* When a user wants to extract the pdf file of the students information and
* when he clicks the button call goes to under given method and it
* generates the pdf file.
*/
@FXML
public void extractPDF() {
Stage primaryStage = new Stage();
DirectoryChooser directoryChooser = new DirectoryChooser();
File selectedDirectory
= directoryChooser.showDialog(primaryStage);
if (selectedDirectory == null) {
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle("Warning");
alert.setHeaderText("Look, an Information Dialog");
alert.setContentText("You have not selected any directory!");
alert.show();
} else {
getTables(selectedDirectory.getAbsolutePath());
}
}
Studentsinformation.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:SEGP_Group10
作者:
评论列表
文章目录