I’m trying to get a JTree object to dynamically resize when a node is expanded. By default, the object area is constant and when expanded, the bottom section of the tree gets out of view, unless the window is resized as well. How do I fix this?
Share
The
setVisibleRowCount()method ofJTreeis particularly helpful in conjunction with theJScrollPanesuggested by @Andrew Thompson.