Modify

Opened 17 years ago

Closed 15 years ago

#630 closed defect (fixed)

Out of bounds with Opening all files (ctrl+a) and MAC LookAndFeel

Reported by: philipp.schultz@… Owned by: framm
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc: philipp.schultz@…

Description

I have set the preferences of JOSM to have a MAC look and feel.
Using file->open, changing the filter to see only .gpx files, alle fuiles remain visible, but the non gpx are dimmed.
Using ctrl+A to select all (I mean to select only the gpx) made the error below.

Kudos for JOSM, regards
Philipp

Path: josm
URL: http://www.openstreetmap.de/svn/josm
Repository Root: http://www.openstreetmap.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 551
Node Kind: directory
Last Changed Author: david
Last Changed Rev: 551
Last Changed Date: 2008-02-19 15:34:18 +0100 (Tue, 19 Feb 2008)

java.lang.ArrayIndexOutOfBoundsException: -1

at java.util.Vector.elementAt(Vector.java:435)
at apple.laf.AquaDirectoryModel.getValueAt(AquaDirectoryModel.java:227)
at apple.laf.AquaFileChooserUI$MacListSelectionModel.isSelectableInListIndex(AquaFileChooserUI.java:2320)
at apple.laf.AquaFileChooserUI$MacListSelectionModel.setAnchorSelectionIndex(AquaFileChooserUI.java:2363)
at javax.swing.JTable.selectAll(JTable.java:1331)
at javax.swing.plaf.basic.BasicTableUI$Actions.actionPerformed(BasicTableUI.java:578)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
at javax.swing.JTable.processKeyBinding(JTable.java:3464)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2818)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
at java.awt.Component.processEvent(Component.java:5360)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4050)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
at java.awt.Component.dispatchEventImpl(Component.java:3923)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180)
at java.awt.Dialog$1.run(Dialog.java:535)
at java.awt.Dialog$2.run(Dialog.java:563)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:561)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:728)
at javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:620)
at org.openstreetmap.josm.actions.DiskAccessAction.createAndOpenFileChooser(DiskAccessAction.java:32)
at org.openstreetmap.josm.actions.OpenAction.actionPerformed(OpenAction.java:43)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5583)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5348)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4050)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Attachments (0)

Change History (4)

comment:1 by anonymous, 17 years ago

Summary: Opening all .gpx files (ctrl+a)Out of bounds with Opening all files (ctrl+a) and MAC LookAndFeel

comment:2 by stoecker, 16 years ago

Also #2151.

comment:3 by mjulius, 15 years ago

Is this issue still present?

I have no Mac and can't test myself. But, someone who can could do this and close the ticket if it is not valid anymore. A lot of things have changed since it was opened.

comment:4 by swissoptimist, 15 years ago

Cc: philipp.schultz@… added
Resolution: fixed
Status: newclosed

I am the original Author of the bug report. I have tested it today on the latest Mac package (2561). The problem seems to be solved. Thank you.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.