aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes printing problem... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "printing problem..." Watch "printing problem..." New topic
Author

printing problem...

satya kiran
Ranch Hand

Joined: Nov 07, 2000
Posts: 52
Hi!
When i was trying to print JTable with values.. I am facing severe problems . Even though the table contains 3 or 4 rows, when i give for printing the size of the file grows to 6 to 10 MB and takes too much time to print (more than 30 mts). I am using jdk1.3 and the printer is HP.
how can overcome this problem? thanks in advance.
Bala Hari
Greenhorn

Joined: Nov 14, 2001
Posts: 7
hai,
You need to disable the doublebuffering before printing your component.
RepaintManager.currentManager(jtable)DoubleBufferingEnabled(false);

So try setting the above line before you are painting the jtable.
Regards,
Bala.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

thbala,

Please re-register with a user name that follows the conventions of the Official JavaRanch UserName Convention. Your username needs to be in the format "First Name" + space + "Last Name".

Thanks,

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: printing problem...