This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Entering this for external customer from the Sun Developer Expert Assistance program: Reproducible in Netbeans 6.1 The customer is referring to the Sample Paint application under Netbeans Module. In the NewCanvasAction.java, he's adding the below code snippet public void performAction() { PrinterJob pj = PrinterJob.getPrinterJob(); pj.printDialog(); The customer is using - JDK 1.5.0_14. Run the application. From Paint Application, select File -> New Canvas (Select New Canvas) We get to see the following exception: java.lang.NullPointerException: null pData at sun.awt.windows.WComponentPeer.nativeHandleEvent(Native Method) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:262) at java.awt.Component.dispatchEventImpl(Component.java:4060) But we found that there is no issue when we use JDK 1.6
Created attachment 61752 [details] Screenshot
Created attachment 61753 [details] Project
please look at the duplicate issue for more details. It is JDK bug. *** This issue has been marked as a duplicate of 133092 ***