classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: SwingUtilities.processKeyBindings() implemented


From: Roman Kennke
Subject: [cp-patches] FYI: SwingUtilities.processKeyBindings() implemented
Date: Sat, 17 Dec 2005 00:30:13 +0000

Hi,

thanks to the work done by Anthony Balkissoon (KeyboardManager) I finally
could make some sense out of the method
SwingUtilities.processKeyBindings() which previously caused headaches to
me :-)

What I think what this method actually should do (and this is how I
implemented it) is, that it processes key bindings for a
java.awt.Component (that is not derived from JComponent) that are in the
WHEN_IN_FOCUSED_WINDOW scope. This is necessary because otherwise such
events would get lost without notifying components with such bindings.
However, I am not sure how this method should be triggered. From within
Component.processKeyEvent() maybe, but calling into Swing code from AWT
seems so ugly...

2005-12-16  Roman Kennke  <address@hidden>

        * javax/swing/SwingUtilities.java
        (processKeyBindings): New method. Processes keybindings for
        non-JComponent derived components.


/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

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