• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

DefaultStyledDocument??

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

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?

//Jimmy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic