
Signature
Andrew Thompson
http://www.athompson.info/andrew/
Am Fri, 29 Jun 2007 03:18:10 +0000 schrieb Andrew Thompson:
> You seemed to to talking about a javax.swing.JTextPane
> and now are discussing a java.awt.TextArea?
> - If so - don't mix swing with AWT.
> - if not - please be specific about the classes used.
Ok, my bad. It is a (javax.swing.)JTextPane. I am only using swing, so
there is no mixing of AWT and swing.
> For these sorts of things I would generally use a
> (javax.swing.)JTextArea.
I want to be able to format the Text in later Versions, so I need a
JTextComponent that supports formated text.
> For a JTextComponent to scroll to current length of the content, see
> setCaretPosition()/moveCaretPosition() and variants as well as
> getText().length().
Ok, Thanks for your help. It is now scrolling down just fine. Now I just
have to figure out the second part, not to scroll down, when the field is
not at the bottom.
Bye,
Till

Signature
Please add "Salt and Pepper" to the subject line to bypass my spam filter
Andrew Thompson - 29 Jun 2007 13:58 GMT
>Am Fri, 29 Jun 2007 03:18:10 +0000 schrieb Andrew Thompson:
>
[quoted text clipped - 5 lines]
>Ok, my bad. It is a (javax.swing.)JTextPane. I am only using swing, so
>there is no mixing of AWT and swing.
Good, good.
>> For these sorts of things I would generally use a
>> (javax.swing.)JTextArea.
>
>I want to be able to format the Text in later Versions, so I need a
>JTextComponent that supports formated text.
Right. That would require the JTextPane..
>> For a JTextComponent to scroll to current length of the content, see
>> setCaretPosition()/moveCaretPosition() and variants as well as
[quoted text clipped - 3 lines]
>have to figure out the second part, not to scroll down, when the field is
>not at the bottom.
Aahh.. no experience there, no time to go crashing
round through the JDocs and Tutorial to find out.
Good luck with that part of the problem.

Signature
Andrew Thompson
http://www.athompson.info/andrew/