United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4201986 : Swing Tooltips not honoring desktop setting for tooltip font

Details
Type:
Bug
Submit Date:
1999-01-10
Status:
Resolved
Updated Date:
2001-01-23
Project Name:
JDK
Resolved Date:
2001-01-23
Component:
client-libs
OS:
windows_nt
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.4.0 (beta)

Related Reports

Sub Tasks

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



Hardware and Software, Engineered to Work Together