diff options
author | David Gilbert <david.gilbert@object-refinery.com> | 2005-10-04 14:12:33 +0000 |
---|---|---|
committer | David Gilbert <david.gilbert@object-refinery.com> | 2005-10-04 14:12:33 +0000 |
commit | 2f99d15b5d3d84ccd02695f98270d2ae130407f0 (patch) | |
tree | 265170590aa72cf2f14220ed66644c5c21b9b73d /examples | |
parent | ff3d92db41466c6ef3bab9b64af6e6b0b626bf3a (diff) | |
download | classpath-2f99d15b5d3d84ccd02695f98270d2ae130407f0.tar.gz |
2005-10-04 David Gilbert <david.gilbert@object-refinery.com>
* 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.
----------------------------------------------------------------------
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gnu/classpath/examples/swing/Demo.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/gnu/classpath/examples/swing/Demo.java b/examples/gnu/classpath/examples/swing/Demo.java index cba46a79a..52ce0f9a6 100644 --- a/examples/gnu/classpath/examples/swing/Demo.java +++ b/examples/gnu/classpath/examples/swing/Demo.java @@ -317,6 +317,7 @@ public class Demo else b = new JButton(title, icon); + b.setToolTipText(title); if (hAlign != -1) b.setHorizontalAlignment(hAlign); if (vAlign != -1) b.setVerticalAlignment(vAlign); if (hPos != -1) b.setHorizontalTextPosition(hPos); |