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

jdk1.1, win32: keyDown message not sent

XMLWordPrintable

    • 1.1
    • ppc
    • windows_nt
    • Not verified


      Using JDK 1.1 for Win32 on an NT machine, try running the following code:

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

      public class t extends Applet {
         public void init() {
           System.out.println("Started.");
         }

         public boolean keyDown(Event evt, int key) {

           System.out.println("inside keydown");
           return false;
         }
      }

      Instructions:

      Select the appletviewer window and press any key on the keyboard. JDK1.1
      for Solaris works correctly and prints "inside keydown". This of course works
      occurs with JDK1.0.2 also. However in JDK1.1 for Win32, keyDown is not called.



      code:

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

      public class t extends Applet {

         public void init() {
           System.out.println("Started.");
         }

         public boolean keyDown(Event evt, int key) {

           System.out.println("inside keydown");
           return false;
         }

      }

            tballsunw Tom Ball (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: