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.
Platform: Solaris 8 jdk: JDK_1.4_b73 Steps to reproduce: on a filesystem new-->AWT Forms-->Applet the workspace switched to GUI Editing, add couple swing componets, e.g. JLabel, JButton etc. save all, exit the ide. Restart ide, you get: java.lang.NullPointerException at javax.swing.JComponent.registerNextFocusableComponent(JComponent.java:924) at javax.swing.JComponent.registerNextFocusableComponent(JComponent.java:914) at javax.swing.JComponent.addNotify(JComponent.java:4213) at java.awt.Container.addImpl(Container.java:479) at java.awt.Container.add(Container.java:348) at org.netbeans.modules.form.FormDesigner.addComponentToContainer(FormDesigner.java:832) at org.netbeans.modules.form.FormDesigner.walkVisualComps(FormDesigner.java:730) at org.netbeans.modules.form.FormDesigner.access$300(FormDesigner.java:48) at org.netbeans.modules.form.FormDesigner$3.run(FormDesigner.java:628) at org.netbeans.modules.form.FormLAF$1.run(FormLAF.java:55) at org.openide.util.Mutex.doEventAccess(Mutex.java:860) at org.openide.util.Mutex.readAccess(Mutex.java:193) at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:41) at org.netbeans.modules.form.FormDesigner.repopulateComponentLayerImpl(FormDesigner.java:587) at org.netbeans.modules.form.FormDesigner.access$500(FormDesigner.java:48) at org.netbeans.modules.form.FormDesigner$2.run(FormDesigner.java:570) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:167) at java.awt.EventQueue.dispatchEvent(EventQueue.java:437) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
The form editor opens with misplaced components. The workaround may be to close the editor, and reopen again.
We do not support mixing AWT and Swing components as it may cause weird issues like this. This still can be problem of the new JDK. Anyway -- we'll look at it, but at lower priority...
[nb_dev](20011011),[jdk1.4](b82) NPE described above in tested build isn't arised, but SWING components aren't visible after close(save) reopen AWT form file. After attempt to select JLabel in Applet arise number of another NPE (attachment).
Created attachment 2967 [details] NullPointerException
Fixed.
verified in [nb_dev](20011031)
Resolved for 3.3.x or earlier, no new info since then -> closing.