Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Sending JTabbedPane to a printer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Sending JTabbedPane to a printer " Watch "Sending JTabbedPane to a printer " New topic
Author

Sending JTabbedPane to a printer

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
I have a JDesktopPane program and I would like to know if it is a big process to send an Object to a printer. The contents of the JInternalFrame which holds a JTabbedPane with the content I would like to be able to send to a printer print. I have a menu on the JDesktopPane and a print menuItem with an actionListener but I'm not sure how to find the JTabbedPane with the content on it.

I'm not sure where to start. Do I have to serialize the JTabbedPane and find the FileOutPutSteam and manipulate it that way?

Thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

Recommended reading
http://java.sun.com/developer/technicalArticles/Printing/SwingPrinting/


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
Consider Paul's rocket mass heater.
 
subject: Sending JTabbedPane to a printer
 
Similar Threads
JOGL 1 vs JOGL 2.0?
Using applet to print
How to print a document?
Java Printing (automated)
Printing API Question