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.

Bug 4218

Summary: Panel and JPanel cannot be pasted.
Product: guibuilder Reporter: Daniel Prusa <dprusa>
Component: CodeAssignee: Daniel Prusa <dprusa>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Daniel Prusa 1999-10-05 21:58:18 UTC
[IAN] Fixed???

In Form Editor copy Panel or JPanel, paste it somewhere. Nothing is pasted and following exception is thrown:

Exception occurred during event dispatching:
java.lang.NullPointerException:
	at com.netbeans.developer.modules.loaders.form.RADVisualContainer.getSubComponents(RADVisualContainer.java:129)
	at com.netbeans.developer.modules.loaders.form.FormManager2.addMouseAdapters(Compiled Code)
	at com.netbeans.developer.modules.loaders.form.FormManager2.addVisualComponent(FormManager2.java:655)
	at com.netbeans.developer.modules.loaders.form.RADComponentNode$RADPaste.paste(RADComponentNode.java:562)
	at org.openide.actions.PasteAction.performAction(PasteAction.java:110)
	at org.openide.actions.PasteAction$ActSubMenuModel.performActionAt(PasteAction.java:195)
	at org.openide.awt.Actions$SubMenuBridge$ISubActionListener.actionPerformed(Actions.java:469)
	at org.openide.awt.Actions$SubMenu.doClick(Actions.java:710)
	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:674)
	at java.awt.Component.processMouseEvent(Compiled Code)
	at java.awt.Component.processEvent(Compiled Code)

	at java.awt.Container.processEvent(Compiled Code)
	at java.awt.Component.dispatchEventImpl(Compiled Code)
	at java.awt.Container.dispatchEventImpl(Compiled Code)
	at java.awt.Component.dispatchEvent(Compiled Code)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
	at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
	at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
	at java.awt.Container.dispatchEventImpl(Compiled Code)
	at java.awt.Window.dispatchEventImpl(Compiled Code)
	at java.awt.Component.dispatchEvent(Compiled Code)
	at java.awt.EventQueue.dispatchEvent(Compiled Code)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
Comment 1 Marek Grummich 2000-07-25 09:38:59 UTC
Priority is changed to P4 (normal).