Skip to main content

Focus problems with Plugin2+FireFox3B4

2 replies [Last post]
linuxhippy
Offline
Joined: 2004-01-07

Hi there,

Since I've updated to b13 (from b5) I am experiencing focus problems with a self-written applet.
The applet shows that a JTextField has the Focus, but instead of inserting the text in the JTextField the browser inserts the typed letters into its adressbar.
It seems like the browser is eating away the plugin's events ;)

Clicking on the JTextField did not help, text was still inserted into the browser's adress bar.

Hope this helps, lg Clemens

It does only happen sometimes, and I found this stacktrace in the console:
Exception in thread "AWT-EventQueue-2" java.lang.IllegalArgumentException: null source
at java.util.EventObject.(EventObject.java:38)
at java.awt.AWTEvent.(AWTEvent.java:259)
at java.awt.event.ComponentEvent.(ComponentEvent.java:96)
at java.awt.event.WindowEvent.(WindowEvent.java:178)
at java.awt.event.WindowEvent.(WindowEvent.java:219)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:652)
at java.awt.Component.dispatchEventImpl(Component.java:4338)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2454)
at java.awt.Component.dispatchEvent(Component.java:4296)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.SentEvent.dispatch(SentEvent.java:55)
at java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:183)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
linuxhippy
Offline
Joined: 2004-01-07

I experienced the problem a few times and it seems its not linked with the Exception listed above.

Clicking between the browser and the plugin does not help, however if I click on the java-console and then on the applet input works again.

lg Clemens

kbr
Offline
Joined: 2003-06-16

Please provide a test case. You can email me at kenneth dot russell at sun dot com.