wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JTextPane printing issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextPane printing issue" Watch "JTextPane printing issue" New topic
Author

JTextPane printing issue

Steve Sinai
Greenhorn

Joined: Aug 21, 2004
Posts: 25
God I hate Java printing!!

I'm trying to print out a JTextPane that has an embedded JComponent using the new 1.6 JPrintComponent.print() method. Works great for text with no embedded components, but doesn't work so great for text WITH embedded components.

If you run the example program below, you'll see a text component with a circle drawn into an embedded component at the bottom of the document. When I hit the Print button at the bottom, the embedded component with the circle goes away. (This takes a few moments while the print system initializes.)

Does anyone have a guess as to how to keep the component from going away when I try to print the document?

Thanks.


Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

http://forum.java.sun.com/thread.jspa?threadID=5301328


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextPane printing issue
 
Similar Threads
painting nested JComponents
Defining the exact bottom of panel for graphic component
Images
Printing Embedded JComponents
How can i have the coordinate on a buffered image ?