JTree avoid collapse after reload
问题 I'm trying to find a solution the problem of collapse in JTree after reload it. The situation: JTree [-] Office A |---[-] Office A.1 | |---[-] Office A.1.1 | |---[-] Office A.1.2 [-] Office B |---[-] Office B.1 | |---[-] Office B.1.1 | | |---[-] Office B.1.1.1 Now I have to add the Office A.1.3 . To do this I get the Office A.1 and with the method add(DefaultMutableTreeNode aNode) I add Office A.1.3 . OfficeA1.add(OfficeA13); After this I call the reload method on the DefaultTreeModel of the