classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] RFC: MetalToolTipUI and BasicToolTipUI


From: David Gilbert
Subject: Re: [cp-patches] RFC: MetalToolTipUI and BasicToolTipUI
Date: Tue, 04 Oct 2005 15:13:09 +0000
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050728)

Lillian Angel wrote:

On Tue, 2005-10-04 at 12:39 +0000, David Gilbert wrote:
I decided to implement the missing methods in MetalToolTipUI. As far as I can tell, tooltips for buttons and menu items under the MetalLookAndFeel display the accelerator text in the tooltip, but under the BasicLookAndFeel they do not. So the accelerator code in BasicToolTipUI needs moving to MetalToolTipUI.

This patch cleans up both classes - I'm asking for review and comments because it is a reasonably big change to BasicToolTipUI and it is possible that I've missed something. Here is the ChangeLog:

2005-10-04  David Gilbert  <address@hidden>

        * javax/swing/plaf/basic/BasicToolTipUI.java
        (accText): removed,
        (accDeliminator): removed,
        (accFont): removed,
        (accFore): removed,
        (getPreferredSize): removed accelerator code (now in MetalToolTipUI),
        (getAcceleratorText): removed (equivalent is now in MetalToolTipUI),
        (paint): removed accelerator painting,
        * javax/swing/plaf/metal/MetalToolTipUI.java
        (padSpaceBetweenStrings): new field,
        (MetalToolTipUI): initialise defaults,
        (getAcceleratorString): new method,
        (installUI): new method,
        (uninstallUI): new method,
        (isAcceleratorHidden): new method,
        (getPreferredSize): new method,
        (paint): new method,
        (fetchAcceleratorString): new private method,
        (acceleratorToString): new private method,
        * examples/gnu/classpath/examples/swing/Demo.java
        (mkButton): set tool tip.

Comments?

Looks fine to me :)
Lillian



Thanks.  Committed.

Regards,

Dave




reply via email to

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