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

Pasting into a JTextPane

 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I have a bug! We have a word processing applet with a JTextPane
using DefaultStyled Document and rtfeditorkit. When I copy text from MS Word and paste it into the editing pane of my applet, certain characters like quotes and apostrophes are not recognized by the JTextPane and are rendered as little squares.
How can I fix this?
TIA, Julia
 
Julia Reynolds
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved this problem:
Microsoft word has settings in Tools>>AutoCorrect>>Auto Format As You Type>>Replace As You Type
for default options called "Smart Quotes" and "Symbol Characters".
These options need to be UN-selected, as they cause Word to replace
ASCII characters with some funky Word Symbol that does not render correctly in the JTextPane.
Julia
 
reply
    Bookmark Topic Watch Topic
  • New Topic