-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b53
-
x86
-
windows_xp
Method BasicTextUI.installDefaults() is called very early in a text fields lifetime, usually before it has been added to a container component. installDefaults() then calls updateCursor() which in returns editor.getCursor(). In many cases editor will be an application specific object whose getCursor() method will be called much earlier with Mustang then has been the case with earlier Java releases including 5.0.
When I tested my customer's Swing client application on Java 6.0-b45 this caused a NullPointerException because their editor's getCursor() method was calling parent.getCursor() internally. On previous Java releases (1.3.1_16, 1.4.2_08, 5.0_04) the same application code just runs well.
When I tested my customer's Swing client application on Java 6.0-b45 this caused a NullPointerException because their editor's getCursor() method was calling parent.getCursor() internally. On previous Java releases (1.3.1_16, 1.4.2_08, 5.0_04) the same application code just runs well.
- relates to
-
JDK-4851758 Uneditable text components should inherit their parent's cursor.
-
- Resolved
-
-
JDK-6263726 REGRESSION: BasicTextUI.installUI() sets wrong cursor on non-editable text components
-
- Resolved
-