• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

JTextPane printing issue

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://forum.java.sun.com/thread.jspa?threadID=5301328
 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic