@FXML
public void addSongPath() {
DirectoryChooser chooser = new DirectoryChooser();
chooser.setTitle("楽曲のルートフォルダを選択してください");
File f = chooser.showDialog(null);
if (f != null) {
boolean unique = true;
for (String path : bmsroot.getItems()) {
if (path.equals(f.getPath()) || f.getPath().startsWith(path + File.separatorChar)) {
unique = false;
break;
}
}
if (unique) {
bmsroot.getItems().add(f.getPath());
}
}
}
PlayConfigurationView.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:beatoraja
作者:
评论列表
文章目录