• 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

Trying getting back html from JEditorPane

Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I put some html formatted text to JEditorPane. Something like this

Then I want on mouse click to modify the html formating, It means to modify the html text going to JEditorPane.
I need to get the text position the mouse is pointing to and retrive the line under that point
something like this


However this code retrieves only pure text without any previous html formatting.
It would be difficult to parse the text with formatting lost.
Can I somewhat get the full html content previously put to JEditorPane using the viewToModel method ?


Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic