Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (672)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  KeyReleased Bug  (Read 985 times)
0 Members and 1 Guest are viewing this topic.
Offline Alan_W

JGO Knight

Medals: 8
Projects: 3

Java tames rock!

« Posted 2013-06-01 07:45:42 »

After the last Java update on OSX (several months ago now), all my keyboard handlers stopped working correctly in applets.  Seems a lack of KeyRelease.

What I've been using for quite a few years in Java4k (Ok, depreciated handler and horrible to read, but it is small)
    /** Process Keyboard and Mouse Events */
    public boolean handleEvent(Event e) {
        switch((|1) {
            case java.awt.Event.KEY_PRESS:
            case java.awt.Event.KEY_ACTION:
                keyboard[e.key] = (;
                return true;
        return false;

Sadly, now the keys now just stick on.  I had a look at other people's applets on Java4k and similar problems all over. So, I thought, it's broken, but another Java release will come along real soon now.  Only it hasn't.  So, do other people have this problem (on OSX) or is it just me.

Edit: This is using latest safari - could be it isn't passing on KeyRelease?

Time flies like a bird. Fruit flies like a banana.
Offline ReBirth
« Reply #1 - Posted 2013-06-01 07:56:14 »

1. Make a simple program to debug, try it on desktop and applet
2. If both of them fail, blame Apple and Oracle.
3. Else if only the applet who fails, try with other browsers
4. If works on other browser, blame Safari team and oracle. If no blame Apple and Oracle.
5. Nothing work, blame Apple and Oracle.

Offline Alan_W

JGO Knight

Medals: 8
Projects: 3

Java tames rock!

« Reply #2 - Posted 2013-06-01 08:01:59 »

Problem also in Firefox

Since Java 1.7.0_21 it is broken in Safari, too. So maybe this is an Jave/Oracle issue.

There's a few threads on stack exchange too, but no full blown hue and cry.  Probably no one writes java applets now?

Time flies like a bird. Fruit flies like a banana.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (52 views)
2016-04-18 14:18:53

KaiHH (48 views)
2016-04-18 08:35:41

KaiHH (79 views)
2016-04-15 12:43:58

theagentd (82 views)
2016-04-14 02:16:17

theagentd (97 views)
2016-04-14 02:15:43

IanParcs (119 views)
2016-04-12 03:51:16

IanParcs (50 views)
2016-04-12 03:50:03

IanParcs (47 views)
2016-04-12 03:49:54

IanParcs (44 views)
2016-04-12 03:49:52

IanParcs (53 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!