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

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u71Fixed 7u60Fixed 8 b110Fixed
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
20-08-2013