One Document two JTextPanes

Hi,

One of the big advantages of the MVC-design, is that one can have one model and many views of it.

That's what I want to do, I want one document and two JTextPanes accessing it. To be more specific: I want a JTextPane to display the document as html while the other shows the source code of the document(the tags etc.). I think that this is possible but I couldn't manage to get it.

What I get is the first JTextPane showing the html correctly(okay...only html 3.2 but its ok for the moment), while the second shows me only the text, no tags.

Please help!

Thanks in advance,

Mohamz

[629 byte] By [mohamza] at [2007-10-2 9:39:41]
# 1
Is it really not possible?
mohamza at 2007-7-16 23:45:42 > top of Java-index,Desktop,Core GUI APIs...