title: Only handling tree will expand but not tree selection in JTree - Java Swing
body: <p>I am doing lazy loading for my app. I want a node to load only user click to it's icon. The point is i don't know that node have it's children or not.My temporary solution is to define a node having children then loading them based on selection event, i don't use tree will expand event for lazy loading. Is there any ways for me to just implement treeWillExpand event. You can reference in <a href="https://docs.oracle.com/javase/tutorial/uiswing/events/treewillexpandlistener.html" rel="nofollow noreferrer">TreeWillExpanListener</a> and <a href="https://docs.oracle.com/javase/tutorial/displayCode.html?code=https://docs.oracle.com/javase/tutorial/uiswing/examples/events/TreeExpandEventDemo2Project/src/events/TreeExpandEventDemo2.java" rel="nofollow noreferrer">TreeExpandEventDemo2</a>.</p>