java FX提示框
Alert alert = new Alert(AlertType.INFORMATION);
alert.titleProperty().set("信息");
alert.headerTextProperty().set("請先打開一個word文檔再點編輯按鈕");
alert.showAndWait();
Alert alert = new Alert(AlertType.INFORMATION);
alert.titleProperty().set("信息");
alert.headerTextProperty().set("請先打開一個word文檔再點編輯按鈕");
alert.showAndWait();
javaFX - FileChooser FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("打開一個word文檔
下圖中,如果少輸入畫紅色圈的public,能夠通過編譯,但是,運行會出現異常,下圖控制檯的異常信息是在沒有輸入public情況下運行產生的。。。。。。。