United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8023392 : Swing text components printed with spaces between chars

Details
Type:
Bug
Submit Date:
2013-08-20
Status:
Resolved
Updated Date:
2013-11-26
Project Name:
JDK
Resolved Date:
2013-09-05
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8-pool
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

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
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/e4ba3d9ea041
User:  lana
Date:  2013-10-01 17:37:37 +0000

                                     
2013-10-01
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/e4ba3d9ea041
User:  mcherkas
Date:  2013-09-05 11:41:35 +0000

                                     
2013-09-05
Testcase
                                     
2013-08-20



Hardware and Software, Engineered to Work Together