Opened 16 years ago

Closed 16 years ago

#3545 closed defect (worksforme)

Error opening preset submenus from toolbar — at Version 1

Reported by: Claudius Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description (last modified by Gubaer)

How to reproduce:

  • Add any preset main menu (e.g. Highways, Water, Transport, Travel, etc.) to the toolbar
  • Click on it and select a preset menu item the would open another submenu (e.g. Highways -> Barriers)

Result:
IllegalComponentStateException

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 2157
Node Kind: directory
Last Changed Author: Gubaer
Last Changed Rev: 2157
Last Changed Date: 2009-09-17 22:38:08 +0200 (Thu, 17 Sep 2009)

Memory Usage: 109 MB / 910 MB (63 MB allocated, but free)
Java version: 1.6.0_10-rc

Plugins: remotecontrolwaydownloaderwmsplugin
Plugin remotecontrol Version: 17590
Plugin waydownloader Version: 17654
Plugin wmsplugin Version: 17561

java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source)
at java.awt.Component.getLocationOnScreen(Unknown Source)
at javax.swing.JPopupMenu.show(Unknown Source)
at org.openstreetmap.josm.gui.tagging.TaggingPresetMenu.actionPerformed(TaggingPresetMenu.java:48)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Change History (1)

comment:1 by Gubaer, 16 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

AFAIK, this has recently been fixed. Closing as worksforme.

Note: See TracTickets for help on using tickets.