Skip to main content

updateCursor in javax.swing.plaf.basic.BasicTextUI

No replies
darat55
Offline
Joined: 2005-08-08
Points: 0

I just tried to run my customer's huge Swing client app on 6.0-b45. We had a problem related to the new updateCursor method in BasicTextUI. This method is already called during construction of text components. This is dangerous because updateCursor() calls getCursor() on its editor object. In our case getCursor() calls parent.getCursor(). As this now happens MUCH earlier during initialization, the component is not yet added to a container and the parent undefined. So we get a NullPointerException which has never happened before.