JDK-4423394 : Tooltips are hidden behind applet window's security banner
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-03-08
  • Updated: 2001-06-27
  • Resolved: 2001-06-27
Related Reports
Duplicate :  
Description

Name: boT120536			Date: 03/08/2001


java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

Windows such as JFrames and JDialogs created by an unsigned applet have a
banner on the bottom with the message "Java Applet Window", to warn the user of
security issues.  If a tooltip is displayed near the bottom of the window, the
tooltip is obscured by the security banner.

The problem is in ToolTipManager.getPopupFitHeight().  This method uses
getBounds() to find the size of the enclosing JFrame or JDialog, and then
adjusts the tooltip position so the tooltip lies within the bounds.  But the
method forgets to subtract the JFrame's or JDialog's insets first.

By ignoring the insets, the tooltip is positioned too low and is partially
covered by the security banner.
(Review ID: 118354) 
======================================================================

Comments
EVALUATION The security banner is shown by AWT. However, Swing was not able to take the security banner into consideration when showing tooltips. Reassign it to Swing team. stanley.ho@Eng 2001-03-14 Name: apR10133 Date: 06/27/2001 It was the problem with the PopupFactory. The bug is actually duplicate of 4223393. The last one evaluate this problem. It is fixed since 1.4.0 build b66. ###@###.### ======================================================================
24-08-2004

WORK AROUND Name: boT120536 Date: 03/08/2001 One way would be to provide your own custom ToolTipManager in the applet, but I couldn't find how to substitute a different ToolTipManager. (Any suggestions??) The alternate work-around, of course, is to sign the applet so the security banner doesn't appear. ======================================================================
24-08-2004