This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printing problem...

 
satya kiran
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic