Tabulator-Taste

Status
Nicht offen für weitere Antworten.

akira

Bekanntes Mitglied
Hi,

ich schreibe gerade ein Applet mit dem JDK1.1.8 und möchte gerne die Tabulator-Taste abfangen.
Leider wird sie so nicht erkannt:

Code:
public class MyApplet extends Applet {
     
    ...... 

    public void processKeyEvent(KeyEvent key) {
        System.out.println( "Key pressed = " + key );
        super.processKeyEvent(key);
    }
}

Hat vielleicht jemand eine Idee?
 

akira

Bekanntes Mitglied
Danke für Deine schnelle Hilfe, leider klappt es jedoch nicht.

Ich habe natürlich auch das Applet als KeyListener registriert und laut API sind die Events dann automatisch enabled.

Event types are automatically enabled when a listener for that event type is added to the component.

Hat noch jemand eine Idee?
 
Status
Nicht offen für weitere Antworten.

Neue Themen


Oben