logo
0 anonymous
Views: 1269115 Challenges: 342
Users: 12684 Online: 0

Problem with applet – 1 Posts

  • 10/16/2024 13:00
    kumaus's Avatar kumaus 00
    Not SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot SpecifiedNot Specified
    It seems the applet does not get keyboard focus with newer versions of Java. In the class JPacMan.java, one needs to add a line
    \"setFocusable(true);\"
    in the init() method to make sure that keystrokes can actually be read by the KeyListener. After that, everything works fine ...