> I need to switch from JTextArea to JTextPane b/c need to change font
> color according to user input, but am running into all sorts of
[quoted text clipped - 9 lines]
>
> would very much appreciate some help.. thank you..
Please calm down.
JTextArea.append() is just a shorthand for getDocument().insertString(getDocument.getLength(), %, null);
size in rows and columns does not make sense for JTextPane in the generic
case (because there is not one fixed font), but they can be done similar to
as JTextArea if desired (override getPreferredScrollableViewportSize and
maybe getPreferredSize, see JTextArea source; it is really not difficult).
Christian
Frances - 28 Aug 2005 18:11 GMT
>
>
[quoted text clipped - 22 lines]
>
> Christian
thank you very much Christian, I will try all this...