Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4811962

Javax.swing.text and Javax.print compatiblity

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • client-libs



      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)
      ======================================================================

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: