Another jdk9 fix for Swing's JTree TreeNode
This commit is contained in:
@ -426,7 +426,7 @@ public class Designer implements ClipboardOwner {
|
||||
// Traverse children
|
||||
TreeNode node = (TreeNode) parent.getLastPathComponent();
|
||||
if (node.getChildCount() >= 0) {
|
||||
for (Enumeration<TreeNode> e = node.children(); e.hasMoreElements();) {
|
||||
for (Enumeration<? extends TreeNode> e = node.children(); e.hasMoreElements();) {
|
||||
TreeNode n = e.nextElement();
|
||||
TreePath path = parent.pathByAddingChild(n);
|
||||
expandAll(path, expand);
|
||||
|
Reference in New Issue
Block a user