Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4032657

The all key events can't be got on the panal of win32

XMLWordPrintable

    • x86
    • windows_nt

      All key events can't be got on the panel of win32 version.
      But they can be got on the panel of Solaris version.

      The following is a sample applet to reproduce a bug.

      import java.awt.*;
      import java.awt.event.*;
      import java.applet.Applet;

      public class My_Event extends Applet implements KeyListener {

          public void init(){
      addKeyListener(this);
          }

          public void keyPressed(KeyEvent evt){
      System.out.println("pressed");
          }

          public void keyReleased(KeyEvent evt){
      System.out.println("released");
          }

          public void keyTyped(KeyEvent evt){
      System.out.println("char:" + evt.getKeyChar());
      System.out.println("code:" + evt.getKeyCode());
          }
      }

            jdunnsunw Jeffrey Dunn (Inactive)
            kuno Koji Uno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: