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

Application deadlocks when printing some text through JTextPane

XMLWordPrintable

    • b70
    • generic
    • generic
    • Verified

      I have loaded a text file on to a JTextPane (through setPage() call) and trying to print it by calling JTextPane.print(). As soon as I call this method, the application hangs and does not resond to user inputs after that.

      This is reproducible on SolSparc10 as well as WinXP since the first Mustang build (b39) where this feature was introduced. I checked it in the current b66 PIT build also (where there is a similar bug fix for JEditorPane) and it is reproducible.

      This is an important bug that must be fixed for RC. Otherwise customers will not be able to use the new feature. Moreover, it fails for all content types such as HTML, TXT and RTF with JTextPane.

      I have attached a sample test. Execute the sample test as follows:
      'java JTextPaneTest sample.txt".
      Click the print button. A print dialog would popup. Click on the print button in the dialog. An interactive dialog would appear and the application hangs after that.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: