Applets: key events, OBJECT/EMBED
Jiri Vanek
jvanek at redhat.com
Thu Jan 16 06:19:39 PST 2014
On 01/16/2014 03:00 AM, Stefan Reich wrote:
> OK, and here's the WEIRDEST thing: JTextField takes key events! See here:
> http://tinybrain.de:8080/tb-applet/test.php
>
Yes it does :) We would notice this!
> I'm now trying to find out how JTextField registers itself for key events... I can do the same thing
> and get those events too, right?
>
> Hope we can fix this, I really want to build an editor applet that works... :)
>
Yes please. The keys are generally working. Try to revisit your approach.
>
>
> On Thu, Jan 16, 2014 at 2:34 AM, Stefan Reich <stefan.reich.maker.of.eye at googlemail.com
> <mailto:stefan.reich.maker.of.eye at googlemail.com>> wrote:
>
> btw, I am calling:
>
> setFocusable(true);
> requestFocusInWindow();
I'm not sure if applet can steal focus from browser like this. Inside java environment itself (once
applet gains focus) it works.
>
> in the applet. And the KeyListener is registered directly on the Applet object. I sometimes see
> that the applet is not even grabbing the keyboard focus - the cursor stays in the location bar,
> for example.
>
>
> On Thu, Jan 16, 2014 at 2:31 AM, Stefan Reich <stefan.reich.maker.of.eye at googlemail.com
> <mailto:stefan.reich.maker.of.eye at googlemail.com>> wrote:
>
> Hi again...
>
> I am almost totally fed up with the state of applets in browsers these days :[
>
> IcedTea/Firefox with APPLET tag: works generally, but: key events do not work at all. (They
> work in appletviewer.) See here: http://tinybrain.de:8080/tb/gui-applet.php?id=172 (Try
> clicking on the text and then pressing left key or right key.)
as above....
>
> Also, still there is the 100% CPU problem. I tried kill -3 with that, but it only stops the
> plug-in (instead of printing a stack trace)...
Not seeing this on head.
>
> IcedTea/Firefox with OBJECT/EMBED tag: Just hangs. Gray area. Check here:
> http://tinybrain.de:8080/tb/gui-applet.php?id=172&useObject=1.
Works fine on head, so maybe it is not OBJECT/EMBED decalration itself, but some other crazines.
>
> Weirdly, I've seen the OBJECT/EMBED version work, for example here:
> http://htmltea.sourceforge.net/editortest.html
>
> This is all really confusing... :[
>
May be confirming previous..
J.
More information about the distro-pkg-dev
mailing list