刷新写入文件到磁盘 2023年6月7日12:25:11

master
zhangmeng 2023-06-07 12:25:20 +08:00
parent 899be85cdf
commit 4c250778da
1 changed files with 2 additions and 0 deletions

View File

@ -135,10 +135,12 @@ public class FileEditController {
try {
FileWriter writer = new FileWriter(path.toFile());
writer.write(text);
writer.flush();
writer.close();
} catch (IOException ex) {
ex.printStackTrace();
}
AlertUtils.alert_warning("tab " + selectedItem.getText() + "保存成功!");
}
public void init_file_list() {