Hello,
I want to write a smiley parser which does no more than find smaller
substrings in another and replaces those with some image displayed in
some text component.
Which class/es can you recommend?
Do you perform the image replacement on Document level or on the text
component level?
Suggestions welcome!
Karsten
Knute Johnson - 19 Mar 2008 23:14 GMT
> Hello,
>
[quoted text clipped - 10 lines]
>
> Karsten
There are a couple of ways you could go about this. Create a font that
has those characters in it or create a component that will display text
and graphics. The JTextPane might work for what you want to do. I
haven't played with that very much.

Signature
Knute Johnson
email s/nospam/linux/
------->>>>>>http://www.NewsDem
Jeff Higgins - 20 Mar 2008 01:45 GMT
> Hello,
>
[quoted text clipped - 8 lines]
>
> Suggestions welcome!
Hi,
I'm interested in reading more replies to your question as I'll soon
be working on a similar problem. Right now I'm looking at:
javax.swing.text.html.HTMLEditorKit.ParserCallback.
<http://java.sun.com/javase/6/docs/api/javax/swing/text/html/HTMLEditorKit.Parser
Callback.html>
JH
Jeff Higgins - 20 Mar 2008 01:49 GMT
>> Hello,
>>
[quoted text clipped - 14 lines]
> javax.swing.text.html.HTMLEditorKit.ParserCallback.
> <http://java.sun.com/javase/6/docs/api/javax/swing/text/html/HTMLEditorKit.Parser
Callback.html>
Ah! Just found this also:
javax.swing.text.html.HTMLDocument.HTMLReader
<http://java.sun.com/javase/6/docs/api/javax/swing/text/html/HTMLDocument.HTMLRea
der.html>
JH