Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4201986
Votes 0
Synopsis Swing Tooltips not honoring desktop setting for tooltip font
Category java:classes_swing
Reported Against 1.2fcs
Release Fixed 1.4(merlin-beta)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 10-JAN-1999
Description




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)
======================================================================
Work Around
N/A
Evaluation
This has been fixed as part of the Windows2000 project for merlin.

 xxxxx@xxxxx  2001-01-22
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang