Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4791650
Votes 2
Synopsis JTable needs printing support
Category java:classes_swing
Reported Against 1.4 , merlin-beta
Release Fixed 1.5(tiger)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 4627240 , 4632213 , 4878013 , 4925524
Submit Date 10-DEC-2002
Description
Subject says it all.
Child of 4632213.
Work Around
N/A
Evaluation
Commit to fix in tiger. Note that this is a child of 4632213.
 xxxxx@xxxxx  2003-01-23

Fix in progress...
 xxxxx@xxxxx  2003-04-07

Will be fixed by adding a set of printing methods to JTable. They will appear in the form of a getPrintable method and a set of print convenience methods.
 xxxxx@xxxxx  2003-04-10

Final API has been determined. See "Suggested Fix" for the proposed new API.
 xxxxx@xxxxx  2003-04-24

A complete test suite for the new JTable printing API can be found in the attachments section. Save the following files into a folder:

Printing.java
SwingSet2.jar
testdoc.html

testdoc.html describes how to use the test suite and what types of tests to run.
 xxxxx@xxxxx  2003-04-24

Fix approved and putback.
 xxxxx@xxxxx  2003-04-29

4925524 will update this new API based on early feedback. When that bug is fixed, the attached test suite will be out of date and will no longer run. An updated version of the test suite will be attached to 4925524.
 xxxxx@xxxxx  2003-10-08
Comments
  
  Include a link with my name & email   

Submitted On 05-MAR-2004
jatima
I think there is no need to get a subset of the JTable 
data and create more JTable in order to print it.

There are already available free classes at 
http://www.activetree.com that does the printing by 
breaking the table automatically into multiple pages. 
Shows a preview dialog if needed, discovers printer,  
and allows the user to selectively print pages. You can 
directly print the contents to the printer. Prints icons, 
special renderers too! It is just 3 lines of code that you 
need. Moreover wne the table is in memory (not shown 
in the UI yet) still you can print using the smart jprint 
classes.



PLEASE NOTE: JDK6 is formerly known as Project Mustang