我是使用Nimbus外观。根据这个链接,您应该能够在JTree中实现3种不同的行样式。
谢谢
使用以下代码:
theTree.putClientProperty("JTree.lineStyle", "Horizontal");
我的JTree看起来像这样:
谢谢