-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta
-
x86
-
windows_nt
-
Verified
The windows common file & print dialogs have AWT peers which differ from
the peers of other components.
We never draw to these dialogs, so they are initialised differently and
override the native create(WComponentPeer) method.
Win32SurfaceData now gets an hWnd for the peer at construction time, but it
hasn't been initialised die to the overridden method. Previously hwnd was
obtained only at rendering time. Since we never render to these dialogs
everything was OK. The new scheme causes a problem which can be reproduced
using the regression test in the workspace at:
test/java/awt/Dialog/FileDialogShowTest/FileDialogShowTest.java
the peers of other components.
We never draw to these dialogs, so they are initialised differently and
override the native create(WComponentPeer) method.
Win32SurfaceData now gets an hWnd for the peer at construction time, but it
hasn't been initialised die to the overridden method. Previously hwnd was
obtained only at rendering time. Since we never render to these dialogs
everything was OK. The new scheme causes a problem which can be reproduced
using the regression test in the workspace at:
test/java/awt/Dialog/FileDialogShowTest/FileDialogShowTest.java
- duplicates
-
JDK-4395870 JCK-interactive: NullPointerException for java.awt.FileDialog constructor
-
- Closed
-