JDK-8017266 : Background is painted taller than needed for styled text.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6,7u25
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-06-21
  • Updated: 2025-11-07
  • Resolved: 2025-10-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b22Fixed
Related Reports
Causes :  
Causes :  
Relates :  
Description
GlyphView.paint() draws background bounding the passed Shape, while the span reserved for the superscripted text is taller than the height of the glyphs. It might be better to use the painter.getHeight() instead of alloc.height to fill the are of actual glyphs boundary.

Comments
Changeset: 460a69bd Branch: master Author: Prasanta Sadhukhan <psadhukhan@openjdk.org> Date: 2025-10-28 02:41:21 +0000 URL: https://git.openjdk.org/jdk/commit/460a69bd5088f92a2843ee4e89b29a71cab81d52
28-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27947 Date: 2025-10-23 03:19:06 +0000
23-10-2025

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

Testcase
21-06-2013