Studentsinformation.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:SEGP_Group10 作者:
/**
 * 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());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号