10 Replies Latest reply: Mar 19, 2014 2:06 PM by user634675-Oracle RSS

    Timeout Bean (timout.jar) does not recognize keystrokes any more (Java 1.7.xx)

    Frank Christian

      Hi,

       

      has any one an idea what to change in the JAVA Code so key strokes are recognized again?

      The original Author (Frank Nimhius) is not longer rsponsible for the demo PJC.

       

      Here is the piece of code that seems to run no longer:

       

        // add key listeners to all components passed as an argument

        public void _addKeyListeners(Component c)

        {

        

              c.addKeyListener(new KeyListener(){

       

              public void keyReleased(KeyEvent ke)

              {

                if(record_on_all_keys || record_on_all_events){

                  log_activity();

                }

              }

       

              public void keyPressed(KeyEvent ke)

              {

                if(record_on_all_keys || record_on_all_events){

                  log_activity();

                }

              }

       

              public void keyTyped(KeyEvent ke)

              {

                if(record_on_all_keys || record_on_all_events){

                  log_activity();

                }

              }

          });

       

        }

       

      Reduced to the problem ...