File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes How to print inside Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "How to print inside Swing" Watch "How to print inside Swing" New topic
Author

How to print inside Swing

Kapil Keskar
Ranch Hand

Joined: Dec 04, 2001
Posts: 47
I have got problem of swing in which i have to print whatever is inside the JInternalFrame.
How to use print in swing, does any one know?
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
AWT comes with a print facility and many of the new printing features are covered under the Java 2D API in the JFC. CORE JFC by Kim Topley is a good start. He offers several examples of using print functions with actual Swing applications.
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
Hi,
I found this link useful. You can download some code which handles printing, all you have to do is send it the name of the component you're trying to print and it does it.
http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html
cheers,
Ben.


SCJP 1.4, www.gsi3d.org.uk
 
 
subject: How to print inside Swing
 
Threads others viewed
Printing from Applet
What is the best way for reporting in JavaSwing Application?
Printing Problem in AWT/SWING
How to open a pdf file from Swing Panel?
Printing Text file in Java
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture