我正在利用Netbeans开发一个小型桌面应用程序。 我把JTree和生动地安置到一起。 现在,每件事情都会被罚款,想达到以下两点:
- When the JTree is poupulated it will automatically expanded means it will start showing all of its nodes till the leaf level
- The first leaf node should be selected by default.
如何实现这两种行为?