[cp-patches] FYI: JTree /OpenJump fix

Mark Wielaard mark at klomp.org
Tue Jun 6 20:34:21 UTC 2006


Hi Roman,

On Tue, 2006-06-06 at 17:35 +0200, Roman Kennke wrote:
> 2006-06-06  Roman Kennke  <kennke at aicas.com>
> 
>         PR 27651
>         * javax/swing/JTree.java
>         (JTree(TreeModel)): Call updateUI() before setModel().
>         (setModel): Don't call updateUI here.

After this patch niffler doesn't startup anymore:

Exception during event dispatch:
java.lang.NullPointerException
   at
javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.java:559)
   at javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:518)
   at
javax.swing.plaf.basic.BasicTreeUI.installUI(BasicTreeUI.java:1353)
   at javax.swing.plaf.metal.MetalTreeUI.installUI(MetalTreeUI.java:107)
   at javax.swing.JComponent.setUI(JComponent.java:3056)
   at javax.swing.JTree.setUI(JTree.java:1622)
   at javax.swing.JTree.updateUI(JTree.java:1630)
   at javax.swing.JTree.<init>(JTree.java:1517)
   at javax.swing.JTree.<init>(JTree.java:1481)
   at niffler.Niffler.createGUI(Niffler.java:233)
   at niffler.Niffler.<init>(Niffler.java:162)
   at niffler.Niffler.createAndShowBrowser(Niffler.java:3071)
   at niffler.Niffler$1.run(Niffler.java:3061)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:465)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:95)

Could you take a look?

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060606/392098f2/attachment.pgp


More information about the Classpath-patches mailing list