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 6927

Summary: Right-click in empty place in Form throws exception.
Product: guibuilder Reporter: L Martinek <lmartinek>
Component: CodeAssignee: _ ttran <ttran>
Status: CLOSED WONTFIX    
Severity: normal    
Priority: P3    
Version: 3.x   
Hardware: Other   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description L Martinek 2000-06-29 10:27:39 UTC
- Create new JFrame from Template
- Right click in Form

Exception occurred during event dispatching:
java.awt.IllegalComponentStateException: component must be showing on the screen
 to determine its location
        at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1242
)
        at java.awt.Component.getLocationOnScreen(Component.java:1216)
        at javax.swing.JPopupMenu.show(JPopupMenu.java:731)
        at org.openide.awt.JPopupMenuPlus.show(JPopupMenuPlus.java:41)
        at org.netbeans.modules.form.FormManager2$ManagerMouseAdapter.showContex
tMenu(FormManager2.java:1191)
        at org.netbeans.modules.form.FormManager2$ManagerMouseAdapter.mousePress
ed(FormManager2.java:1333)
        at org.netbeans.modules.form.MouseEventRedirector.mousePressed(MouseEven
tRedirector.java:58)
        at java.awt.Component.processMouseEvent(Component.java:3714)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451
)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
3)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Jan Stola 2000-06-29 10:38:59 UTC
*** This bug has been marked as a duplicate of 6740 ***
Comment 2 Jan Stola 2000-07-27 17:54:59 UTC
Bug assigned to the module owner.
Comment 3 Quality Engineering 2003-06-30 18:27:26 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.