laptop and a wrench

Erro

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.

Última Publicação: August 25, 2014 No Product Found
Número de ID do Erro NIM005083
EnviadoNovember 2, 2006
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.1
Idioma do programaJava
Versão Fixa9.3
StatusDuplicate

Informações Adicionais

NIM008211

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM005083

Software:

  • No Product Found

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download