/**
* Open an Explorer with the given Path
*
* @param directoryPath - Path to open
* @return Open-Explorer ActionListener
*/
static ActionListener openExplorer(String directoryPath) {
return e -> {
Desktop desktop = Desktop.getDesktop();
try {
desktop.open(new java.io.File(File.ensureDSonEndOfPath(directoryPath)).getAbsoluteFile());
} catch(Exception ex) {
ex.printStackTrace();
ErrorWindow errorWindow = new ErrorWindow(
"Unable to open the File-Explorer with the Directory: " + directoryPath,
ErrorWindow.ERROR_LEVEL_ERROR,
false
);
errorWindow.show();
}
};
}
GUI_ActionListener.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:Java-RPG-Maker-MV-Decrypter
作者:
评论列表
文章目录