JDK-8023392 : Swing text components printed with spaces between chars
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Affected Version: 8-pool
  • OS: generic
  • CPU: generic
  • Submit Date: 2013-08-20
  • Updated Date: 2014-03-11
  • Resolved Date: 2013-09-05
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u71Fixed 7u60Fixed 8 b110Resolved
Related Reports
Relates :  
Description
Swing text comp printed with unexpected spaces between chars, possible
6488219 regression.

Other (swing/java.awt.print issue, bad text/label printout result)
General description of the problem
  Customer is migrating an applet from 1.3 to 6.  When some applet is printed
using java.awt.print.* and Printable interface, some text (JLabel or JList)
is printed with unexpected spaces between characters, as if the text is
expanded to span evenly in its bounds.

Following is an example of label of 9 chars width.  With 1.3, the label "abc"
is printed as left-justified, but on 6u37, characters are printed as if "a  
b   c".  Same thing happens with a JList.
On display, they are shown as left justified (same as 1.3 case)

|abc      | // 1.3
|a   b   c| // 6u37
Comments
Testcase
2013-08-20