Salut,
Dans un Thread, je fais un updateUI() sur un JTree.
Cela marche bien mais chaque fois que je lance le thread une erreur est affichee. Le programme continue de tourner correctement mais j'aimerais bien comprendre quelle est cette erreur :
Pensez vous que ca vient de la facon dont j'utilise le thread ou bien de la methode updateUI() qui n;est pas appropriee ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI.paintRow(Unknown Source) at javax.swing.plaf.basic.BasicTreeUI.paint(Unknown Source) at javax.swing.plaf.metal.MetalTreeUI.paint(Unknown Source) at javax.swing.plaf.ComponentUI.update(Unknown Source) at javax.swing.JComponent.paintComponent(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Merci
Partager