JDK-4811962 : Javax.swing.text and Javax.print compatiblity
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-02-03
  • Updated: 2003-02-03
  • Resolved: 2003-02-03
Related Reports
Duplicate :  
Description

Name: rmT116609			Date: 02/03/2003


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

A DESCRIPTION OF THE PROBLEM :
Since the javax.swing.text packages provide a way to render
formatted text to screen, I think the javax.print packages
should be compatible with these packages.

Since Java is such a flexible language, I don't see why we
programmers must come up with our own implementation for
outputting the javax.swing.text package documents to a
printer, since these documents should be printable as "What
you see is what you get."

My best suggestion would be for the Documents and
Attributes in the javax.swing.text packages to
implement/extend those within the javax.print packages.

CUSTOMER WORKAROUND :
Implementing java.awt.Printable and actually drawing the
text.
(Review ID: 180669) 
======================================================================

Comments
EVALUATION This will be accomodated by 4791649, refer to it for more information. ###@###.### 2003-02-03
03-02-2003