classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: fixed AWT/Swing FocusManager compatibility


From: Roman Kennke
Subject: [cp-patches] FYI: fixed AWT/Swing FocusManager compatibility
Date: Fri, 28 Oct 2005 16:44:38 +0000

Hi,

I finally fixed the Swing/AWT FocusManager compatibility problem. The
problem was that Swing used to define a FocusManager, that was obsoleted
in Java 1.4 and replaced by the AWT FocusManager. Now the static method
getCurrentManager in the Swing FocusManager must return a Swing
FocusManager, but the AWT DefaultFocusManager is only a superclass of
this. The solution until now has been the gnu.java.awt.FocusManager that
could be used when compatibility was needed using a system property. The
solution now is more generic and returns a Swing FocusManager that wraps
the current AWT focus manager completely.

2005-10-28  Roman Kennke  <address@hidden>

        * java/awt/KeyboardFocusManager.java
        (setCurrentKeyboardFocusManager): Create a
DefaultKeyboardFocusManager
        directly.
        (createFocusManager): Removed.
        * gnu/java/awt/FocusManager.java: Removed.
        * javax/swing/FocusManager.java
        (DisabledFocusManager): Removed inner class.
        (WrappingFocusManager): New inner class.
        (getCurrentManager): Return WrappingKeyboardFocusManager instance.


/Roman

Attachment: FocusManager.diff
Description: Text Data


reply via email to

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