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 116698 - MENU: menu bar disappear when redo action is done
Summary: MENU: menu bar disappear when redo action is done
Status: RESOLVED DUPLICATE of bug 112990
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 15:47 UTC by Jana Maleckova
Modified: 2007-09-25 16:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-09-25 15:47:14 UTC
Product Version: NetBeans IDE Dev (Build 20070925065920) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System:
Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
have clear frame and insert menu bar there. Then place e.g. jButton in form and do Undo and finally Redo action. Menu
bar disappear from design while jButton stays there
At this time when individual menu comp from menu bar are selected in inspector (menu bar remain there), warning
exception is thrown

StackTrace:
===========
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
        at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1800)
        at java.awt.Component.getLocationOnScreen(Component.java:1774)
        at javax.swing.JPopupMenu.show(JPopupMenu.java:909)
        at org.netbeans.modules.form.menu.MenuEditLayer$7.run(MenuEditLayer.java:487)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Joshua Marinacci 2007-09-25 16:28:28 UTC
This is a duplicate of this bug: http://www.netbeans.org/issues/show_bug.cgi?id=112990

*** This issue has been marked as a duplicate of 112990 ***