-
Bug
-
Resolution: Won't Fix
-
P3
-
6
-
x86
-
windows_2000
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2151485 | Unassigned | P3 | Closed | Won't Fix |
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
JRE 1.6 shows a white line on both left and right side of a tooltip text. This happens only when the background colour of the tooltip is changed to a different colour. No issues in JRE 1.5 or before.
Example:
String strTooltipText = "<html><body bgcolor='#18AFE5'><strong>HELP:</strong> <BR><HR>";
strTooltipText += " <strong>This is the help text</strong><BR></body></html>";
component.setToolTipText(strTooltipText);
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set a tooltip for a Swing Component with a different background colour using HTML. You would see a white line in both left and right side of the tooltip.
Example:
String strTooltipText = "<html><body bgcolor='#B8CFE5'><strong>HELP:</strong> <BR><HR>";
strTooltipText += " <strong>This is the help text</strong><BR></body></html>";
component.setToolTipText(strTooltipText);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No white border should appear on either side.
ACTUAL -
You would see a white border in both left and right side of the tooltip.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Example:
String strTooltipText = "<html><body bgcolor='#B8CFE5'><strong>HELP:</strong> <BR><HR>";
strTooltipText += " <strong>This is the help text</strong><BR></body></html>";
component.setToolTipText(strTooltipText);
---------- END SOURCE ----------
Release Regression From : 5.0u11
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
JRE 1.6 shows a white line on both left and right side of a tooltip text. This happens only when the background colour of the tooltip is changed to a different colour. No issues in JRE 1.5 or before.
Example:
String strTooltipText = "<html><body bgcolor='#18AFE5'><strong>HELP:</strong> <BR><HR>";
strTooltipText += " <strong>This is the help text</strong><BR></body></html>";
component.setToolTipText(strTooltipText);
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set a tooltip for a Swing Component with a different background colour using HTML. You would see a white line in both left and right side of the tooltip.
Example:
String strTooltipText = "<html><body bgcolor='#B8CFE5'><strong>HELP:</strong> <BR><HR>";
strTooltipText += " <strong>This is the help text</strong><BR></body></html>";
component.setToolTipText(strTooltipText);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No white border should appear on either side.
ACTUAL -
You would see a white border in both left and right side of the tooltip.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Example:
String strTooltipText = "<html><body bgcolor='#B8CFE5'><strong>HELP:</strong> <BR><HR>";
strTooltipText += " <strong>This is the help text</strong><BR></body></html>";
component.setToolTipText(strTooltipText);
---------- END SOURCE ----------
Release Regression From : 5.0u11
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
- backported by
-
JDK-2151485 Using HTML in tooltip leaves a white line in right and left sides
- Closed
- relates to
-
JDK-5047379 tooltips have extra space at the end of the message
- Resolved