-
Bug
-
Resolution: Fixed
-
P2
-
6
-
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.
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.
- relates to
-
JDK-6361892 Printing of HTML through JEditorPane is broken since Mustang-b53
- Closed
-
JDK-6394028 size key is missing in StyleContext.DEFAULT_STYLE so default fontsize returns null value.
- Closed