PlayConfigurationView.java 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号