JDK-4402462 : Heavyweight tooltip flickers repeatedly if it pops up under cursor.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-01-06
  • Updated: 2001-01-08
  • Resolved: 2001-01-08
Related Reports
Duplicate :  
Description
When a heavyweight tooltip pops up under the cursor, the tooltip flickers repeatedly.  No problem with lightweight tooltips.

The following code will demonstrate.  move the mouse into the bottom part of the frame that appears so that the tooltip will popup underneath it.

import javax.swing.*;

public class ToolTipFlicker {

    public static void main(String [] args) {
	JFrame frame = new JFrame();
	frame.setBounds(20, 20, 100, 100);
	JPanel toolTipPanel = new JPanel();
	// force a heavyweight tooltip using long text
	toolTipPanel.setToolTipText("This test text is wider than the window");
	frame.getContentPane().add(toolTipPanel, java.awt.BorderLayout.CENTER);
	frame.show();
    }
}

Comments
PUBLIC COMMENTS When a heavyweight tooltip pops up under the cursor, the tooltip flickers repeatedly. No problem with lightweight tooltips.
10-06-2004

EVALUATION This was fixed as part of exposing Popup and PopupFactory. Refer to 4303635 for more information. scott.violet@eng 2001-01-08
08-01-2001