Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

trying to make an HTML Editor

  Asked By: Leona    Date: Dec 20    Category: Java    Views: 625

I have a JTextPane and I'm trying to make an HTML Editor. Simple
enough? HTMLEditorKit makes it simple.

I'v added a document listener on 2 JTextPanes

one shows the formated html and other shows the code


When I add an Image tag to the source, it does not load it up onto
the formated html page. For example adding

<img scr="c:\whatever\abc.jpg">

Shows a broken link image instead of showing my image.

You'll say file is'nt ther? it is there, If you see preview of that
html in a broswer, IT WORKS



1 Answer Found

Answer #1    Answered By: Olga Kates     Answered On: Dec 20

Not really sure (too lazy to try it myself), but may be you can:
- replace '\' with '/'
- take extra care on letter-cases of file/path name, especially if
you're working on Windows (98).

Didn't find what you were looking for? Find more on trying to make an HTML Editor Or get search suggestion and latest updates.