• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin


Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have desided to use DefaultStyledDocument to print my reports. i have mange to print insert text, but i have notice that if the text is not fitting the JTextPane, then it will continue on the next row?

How do i get this thing to dissepear? i need it to print the text as i state, and not switch rows.

I also need to draw lines and so on in this DefaultStyledDocument, but i have not found a way to do this? there is no function like Graphics getGraphics(), do i have to print the symbold(diagrams) in a overidden paint method?

Is there a way to position text and other stuff as i want? like i could if i override a paint method and use Graphics.drawstring ans so on?

    Bookmark Topic Watch Topic
  • New Topic