Click here to Skip to main content
15,037,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to JAVA and i am trying to add print-preview functionality in my frame, i found a print preview class. Now i want to use it in my frame, I have created an object to PrintPreview class it is asking for (Frame,canvas,page). In frame i pass this for my current frame,and in page "A4"
but I don't know what to use in place of canvas to pass the constructor of PrintPreview class.

What I have tried:

GitHub - tomwhite/core[^]
Posted
Comments
Richard MacCutchan 21-Oct-17 4:13am
   
You need to study the documentation of the class you are trying to use.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900