laptop and a wrench

Bogue

MapControl stops listening to the keyboard events if you minimize the window, or click on another application and then click back on the map in JAVA.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM005083
EnvoiNovember 2, 2006
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.1
Langue du programmeJava
Version de correction9.3
StatutDuplicate

Informations supplémentaires

NIM008211

Solution de contournement

1) include a call to map.requestFocusInWindow() in the "onMouseUp" event of the mapcontrolAND2) add key listeners to the map control to listen to the AWT key events: map.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent theEvent) { System.out.println("keyPressed"); } public void keyReleased(java.awt.event.KeyEvent parm1) { System.out.println("keyReleased"); } });To test the workaround in the project 528704, enable the two pices of code enclosed between the comments "// ENABLE THESE LINES TO SOLVE ISSUE " in the file MapEventTest.java. The workaround works fine in 9.1 and 9.2

Étapes pour reproduire

ID de bogue: NIM005083

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement