classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: BasicMenuItemUI fixes


From: Lillian Angel
Subject: [cp-patches] Patch: BasicMenuItemUI fixes
Date: Tue, 01 Nov 2005 10:37:59 -0500

Played around with the defaults a bit so BasicMenuItemUI initializes
checkIcon. I had to remove the checkIcon default from BasicL&F, so the
checkIcon is not drawn all the time.

2005-11-01  Lillian Angel  <address@hidden>

        * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java
        (BasicCheckBoxMenuItem): Moved code to 
        BasicMenuItemUI.installDefaults.
        (processMouseEvent): Added TODO comment. Not sure about the
        correct implementation yet.
        * javax/swing/plaf/basic/BasicLookAndFeel.java
        (initComponentDefaults): Removed MenuItem.checkIcon default. 
        Only RadioButtonMenuItem's and CheckBoxMenuItem's have 
        checkIcons.
        * javax/swing/plaf/basic/BasicMenuItemUI.java
        (installDefaults): Fixed to initialized checkIcon. If the 
        menuItem is not a RadioButtonMenuItem or CheckBoxMenuItem, then 
        checkIcon is null. Also, fixed defaults to use prefix.

Attachment: patch.diff
Description: Text Data


reply via email to

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