This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Printing  RSS feed

 
Shikha Jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ! EveryBody

I am developing one web cam application in java. I am through with all thing but i stuck up at one place. its related to printing. The problem is when i take print out of the component (JPanel containing JTable) its not giving print in the one page , it gave print out in four page . it means that the size of paper is coming out to be smaller than my component size.

I do understand i have to do some scaling or transform method call of graphics 2D class object . however this is the only the one part of the problem.

Another big problem is that My JTable may have many rows depending upon the date parameters. I am able to print only the visible part of the Jtable not the whole Table. for eg. if i can see from row 1 to row 40 only that can be printed however rest 60 rows will not be printed . to print that i have to scroll the table and then give the print command

Please Suggest the Solution.

Thanks

Shikha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!