private void editLocation ()
{
DirectoryChooser chooser = new DirectoryChooser ();
chooser.setTitle ("Choose Spy Folder");
File currentLocation = spyFolder.isEmpty () ? null : new File (spyFolder);
if (currentLocation != null && currentLocation.exists ())
chooser.setInitialDirectory (currentLocation);
File selectedDirectory = chooser.showDialog (this);
if (selectedDirectory != null)
{
spyFolder = selectedDirectory.getAbsolutePath ();
fileComboBox.getItems ().clear ();
ObservableList<String> files = getSessionFiles (spyFolder);
fileComboBox.setItems (files);
if (files.size () > 0)
fileComboBox.getSelectionModel ().select (0);
}
}
OptionStage.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:dm3270
作者:
评论列表
文章目录