JDK-4201986 : Swing Tooltips not honoring desktop setting for tooltip font
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-01-10
  • Updated: 2001-01-23
  • Resolved: 2001-01-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
1.4.0 betaFixed

Name: dbT83986			Date: 01/10/99

In the Windows Look&Feel, the ToolTip font that is set on the
desktop, via the Desktop -> Properties -> Appearance menu, is
not being used. Only the background color is being used, but
not the foreground or font/font-style.

To see the bug, change the settings for the desktop tooltip
appearance and watch how the Swing Tooltip doesn't pick up
the change.

As an added bonus, the test program below should display the
clipping bug whereby tooltips don't extend outside the bounds
of the frame(under some circumstances) :-(

//~~~~~~~~~~~~~~~~~~~~~~~~~ cut here ~~~~~~~~~~~~~~~~~~~~~~
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class tooltipFontBug {
    public static void main (String args[]) {
        try {
        } catch (Exception e) {e.printStackTrace();}

        JFrame frame = new JFrame();
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {System.exit(0);}

        JButton b = new JButton("I'm a button");
        b.setToolTipText("Here is my example tooltip text");

(Review ID: 52366)

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: merlin-beta INTEGRATED IN: merlin-beta

EVALUATION This has been fixed as part of the Windows2000 project for merlin. amy.fowler@Eng 2001-01-22