Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Printing

Shikha Jain
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.


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic