It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "printing problem..." Watch "printing problem..." New topic

printing problem...

satya kiran
Ranch Hand

Joined: Nov 07, 2000
Posts: 52
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

Joined: Nov 14, 2001
Posts: 7
You need to disable the doublebuffering before printing your component.

So try setting the above line before you are painting the jtable.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121


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".



Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: printing problem...
It's not a secret anymore!