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

Line wrapping works opposite to what is shown on the screen, when printing JEditorPane text, WinXP

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b66
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      I am printing a RTF file and a simple text file through JEditorPane. I am noticing the following behaviors which are not compatible with what is shown on the screen.

      1. RTF file loaded onto the JEditorPane line wraps the text properly on the screen when reducing/increasing the size of the pane. But when printing the text, the lines are not wrapped properly and they are truncated in the print out for the default paper.

      2. Simple Text file loaded onto the JEditorPane does not line wrap automatically but when I print it out, it does line wrap in the print out. Not sure which one is the right behavior.

      All the above behaviors are reproduced on Mustang-b62 with WinXP Prof. I am using default paper. Customer is likely to expect the screen behavior when printing the JEditorPane contents and would be good if this is made consistant.

      I have attached a sample test with a rtf and a simple text file. Run the application passing the file name as the argument. Print the contents of JEditorPane and see how they are wrapped in the print out.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              idk Igor Kushnirskiy (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: