摘要:
最近在做东西时发现,当在线程里面刷新JTree时,有时会出现空指针错误,在网上查了很久,终于发现以下解决方法:JTree中调用UpdateUI()报以下错误java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1367) at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1171) at javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeU 阅读全文