JDK-4925524 : Update the JTable printing API based on early feedback.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-09-19
  • Updated: 2017-05-16
  • Resolved: 2003-11-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
5.0 b28Fixed
Related Reports
Relates :  
Early feedback on the JTable printing API (introduced by 4791650) suggests some changes that must be made prior to release.

First, there is concern with the behavior of the convenience methods JTable.print(xxx). It was known at the time of integration that these methods would block the GUI until printing was done. No solution was known at that time. Internal user feedback suggests that this will really annoy users, and luckily a fix has been determined. This fix involves showing a dialog and moving some of the processing to another thread.

The second item that has been suggested is to use the new enum facility for constants defined for JTable's printing modes. This can only ever be addressed prior to public release and needs to be done now.

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b28 tiger-beta

EVALUATION I submitted it, I'll fix it :) ###@###.### 2003-09-19 The printing mode integer constants have been replaced with a typesafe enum. The print() methds have been improved significantly. Printing will now be driven from another thread (although still calling into the EDT for each page). This allows the EDT to remain responsive and process repaints. While printing is ongoing, a modal dialog will be displayed to prevent user modification of the table, provide status about the printing progress, and allow the user to abort the printing. ###@###.### 2003-10-08 I have recently decided that showing this status dialog will be controlled by a new "interactive" parameter in the main print() method. The convenience methods will print interactively by default. ###@###.### 2003-10-10 An attempt to verify printing in headless mode failed. Two bugs have been filed on this: 4936074 and 4936867. ###@###.### 2003-10-14