JDK-4297078 : JToolTip fails under all solaris platforms
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 1999-12-06
  • Updated: 1999-12-09
  • Resolved: 1999-12-09
Related Reports
Duplicate :  
Description

Name: jbT81659			Date: 12/06/99

JToolTip takes along time to display under all solaris platforms
To reproduce bug:
Compile and run attached code under solaris
point the mouse to any button
Wait to see tooltip
Note that tooltip takes more than 10 minutes to showup
Compile and run application under windows
Note that once you point the mouse to a button tooltip is displayed

---Code-----
/* Copyright (c) Sun Microsystems 1998

$Header: /home/sun/src/JDK1.2/jToolTip.java,v 1.12 1999/11/28 11:34:25 isam Exp $

*/

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class jToolTip extends JApplet
{
        public void init()
        {
                TooltipPanel1 tooltip = new TooltipPanel1();
                getContentPane().add(tooltip);
        }

        public static void main(String[] argv)
        {
                JFrame frame = new JFrame("\u0645\u062b\u0627\u0644");
                frame.setContentPane(new TooltipPanel1());
                frame.pack();
                frame.setVisible(true);
                //frame.setSize(700,800);
        }
}
class TooltipPanel1 extends JPanel
{
        public TooltipPanel1()
        {
setLayout(new GridLayout(5,1));
                JButton Button1 = new JButton();
                Button1.setFont(new Font("Lucida Sans Regular",Font.PLAIN,12));
Button1.setText("\u062a\u0641\u0627\u062d\u0020\u0623\u062d\u0645\u0631\u0020\u0643\u0628\u064a\u0631\u0020\u0042\u0049\u0047\u0020\u0052\u0045\u0044\u0020\u0041\u0050\u0050\u004c\u0045\u0053\u0665\u0667\u0669\u0661");
                Button1.setToolTipText ("\u0647\u0630\u0627\u0020\u064a\u0648\u0645\u0020\u0644\u0637\u064a\u0641\u0020\u05d6\u05d4\u0020\u05d9\u05d5\u05dd\u0020\u05e0\u05e2\u05d9\u05dd");

                JButton Button2 = new JButton();
                Button2.setFont(new Font("Lucida Sans Regular",Font.PLAIN,12));
Button2.setText("\u05d6\u05d5\u0020\u05e9\u05e0\u05d4\u0020\u05d9\u05e4\u05d4\u0020\u0054\u0048\u0045\u0020\u0059\u0045\u0041\u0052\u0020\u0031\u0039\u0035\u0038");
                Button2.setToolTipText ("\u05d6\u05d5\u0020\u05e9\u05e0\u05d4\u0020\u05d9\u05e4\u05d4\u0020\u0054\u0048\u0045\u0020\u0059\u0045\u0041\u0052\u0020\u0031\u0039\u0035\u0038");

                JButton Button3 = new JButton();
                Button3.setFont(new Font("Lucida Sans Regular",Font.PLAIN,12));
Button3.setText("\u05ea\u05e4\u05d5\u05d6\u05d9\u05dd\u0020\u05d8\u05e2\u05de\u05d9\u05dd\u0020\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e");
                Button3.setToolTipText ("\u05ea\u05e4\u05d5\u05d6\u05d9\u05dd\u0020\u05d8\u05e2\u05de\u05d9\u05dd\u0020\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e");

                JButton Button4 = new JButton();
                Button4.setFont(new Font("Lucida Sans Regular",Font.PLAIN,12));
Button4.setText("\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e\u05d7\u05d5\u05de\u05d5\u05e1\u0020\u05d9\u05e7\u05e8");
                Button4.setToolTipText ("\u006c\u0069\u006d\u0065\u0020\u05d7\u05d5\u05de\u05d5\u05e1\u0020\u05d9\u05e7\u05e8\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e");

                JButton Button5 = new JButton();
                Button5.setFont(new Font("Lucida Sans Regular",Font.PLAIN,12));
Button5.setText("\u05d7\u05d5\u05de\u05d5\u05e1\u0020\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e\u0020\u05d9\u05e7\u05e8");
                Button5.setToolTipText ("\u062a\u0641\u0627\u062d\u0020\u0623\u062d\u0645\u0631\u0020\u0643\u0628\u064a\u0631");
                add(Button1);
                add(Button2);
                add(Button3);
                add(Button4);
                add(Button5);

        }

}






WorkAround:
======================================================================