gcjwebplugin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcjwebplugin-devel] Patch: PluginAppletWindow fix and Test


From: Lillian Angel
Subject: [Gcjwebplugin-devel] Patch: PluginAppletWindow fix and Test
Date: Thu, 06 Apr 2006 18:26:06 -0400

Hi,

Attached is a fix for PluginAppletWindow. It should extend several
different listeners, and pass all events received to its child (the
applet). This is because the author of the applet may attach a listener
to the applet, as they are unaware of the parent frame (the plugin
applet window), and any events on the parent window will not be known to
the child and the it's listener will never be notified.

Try this applet: http://www.falstad.com/wavebox/

The PluginAppletWindow implements all listeners that Sun's appletWindow
implements. Sun does not take care of all listeners (i.e. FocusListener
and KeyListener) but most are there. The test case tests all listeners.
It completely passes on Sun. 3 tests fail on gcjwebplugin because of a
Classpath bug. This will be fixed soon.

06-04-2006  Lillian Angel  <address@hidden>

        * src/gcjwebplugin/PluginAppletWindow.java
        (PluginAppletWindow): Added listeners.
        (componentAdded): New function. Passes event to applet.
        (componentRemoved): Likewise.
        (componentHidden): Likewise.
        (componentShown): Likewise.
        (componentResized): Likewise.
        (componentMoved): Likewise.
        (mouseClicked): Likewise.
        (mousePressed): Likewise.
        (mouseReleased): Likewise.
        (mouseEntered): Likewise.
        (mouseExited): Likewise.
        (mouseDragged): Likewise.
        (mouseMoved): Likewise.
        (inputMethodTextChanged): Likewise.
        (caretPositionChanged): Likewise.
        (hierarchyChanged): Likewise.
        (ancestorMoved): Likewise.
        (ancestorResized): Likewise.
        (setHandle): No need to set layout here.

I do not have commit access, can someone please commit this?

Thank you,
Lillian

Attachment: patch.diff
Description: Text Data

Attachment: TestAppletListeners.java
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]