• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Custom Visual Markup using the HtmlEditorKit

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I'm trying to create a 'simple' html/xml editor, where I can highlight a word/s then click a button which applies a markup tag to the selection.
Also depending on the markup tag the editor pane would show a visual change (but not the makup tag) i.e.
shows only the word sky in blue.
I've tryed using a JTextPane() along with the HtmlEditorKit(), as the editor kit only supports HTML 3.2 it would required me to append my markup tags to the SGML DTD (rather complicated).
If this indeed does work, it still leaves me pondering how to show a visual change, without affecting the markup.
Linda Janes
[This message has been edited by Linda Janes (edited November 22, 2001).]
[This message has been edited by Linda Janes (edited November 22, 2001).]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic