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.
Other
1.4.0 betaFixed
Description

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 {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } 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");

        frame.getContentPane().add(b);
        frame.pack();
        frame.setVisible(true);
    }
}
(Review ID: 52366)
======================================================================

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

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