classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: SwingUtilities.replaceUIActionMap fixed


From: Anthony Balkissoon
Subject: [cp-patches] Patch: SwingUtilities.replaceUIActionMap fixed
Date: Tue, 08 Nov 2005 15:39:13 -0500

As I reported in bug 24742:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24742
SwingUtilities.replaceUIActionMap wasn't working properly.  This patch
fixes it and also fixes BasicListUI, BasicTableUI, and BasicTreeUI to
use ActionMapUIResource for their ActionMaps as they should.


2005-11-08  Anthony Balkissoon  <address@hidden>

        * javax/swing/SwingUtilities.java:
        (replaceUIActionMap): Stop climbing hierarchy once we've found an 
        ActionMapUIResource, don't keep looking until parent is null.  No need
        to check if child is null.
        (replaceUIInputMap): Use a local variable for the parent rather than 
        3 calls to get parent.  No need to check if child is null.
        * javax/swing/plaf/basic/BasicListUI.java:
        * javax/swing/plaf/basic/BasicTableUI.java:
        * javax/swing/plaf/basic/BasicTreeUI.java:
        (installKeyboardActions): UI ActionMap should be of type 
        ActionMapUIResource, not just ActionMap.

--Tony

Attachment: SwingUtilsReplaceUIMap.diff
Description: Text Data


reply via email to

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