We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ea839f + 3202b22 commit 0d5d50fCopy full SHA for 0d5d50f
src/main/java/org/scijava/ui/swing/script/FileSystemTree.java
@@ -507,10 +507,14 @@ public void run() {
507
if (null != node) nodes.add(node);
508
}
509
510
- for (final Node node : nodes) {
511
- node.updateChildrenList(FileSystemTree.this.getModel());
512
- FileSystemTree.this.expandPath(new TreePath(node.getPath()));
513
- }
+ SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ for (final Node node : nodes) {
+ node.updateChildrenList(FileSystemTree.this.getModel());
514
+ FileSystemTree.this.expandPath(new TreePath(node.getPath()));
515
+ }
516
517
+ });
518
519
boolean valid = key.reset();
520
if (!valid) {
0 commit comments