I suppose it would depend on the internal workings of insertString.
But my first guess would be that you want to use a StringBuffer to
hold the original string up to the offs value, then insert (append)
the new string onto the StringBuffer at that point, then go about
putting the rest of the original string onto the StringBuffer. Then
you return the new string from the StringBuffer.

--- Harneet <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> 
> My Class extends DefaultStyledDocument . In this class I am calling
> 
> 
> 
> public void insertString(int offs, String str, AttributeSet a)
> 
> 
> method. What I am getting is that my text is being added in
> descending order (i.i the latest goes up) . Is there any way to
> reverse this order. 
> 
> I have my above mentioned class associated with a JTextPane.
> 
> 
> People any ideas???
> 
> 
> Regards,
> Harneet
> 
> 
> To change your JDJList options, please visit:
> http://www.sys-con.com/java/list.cfm
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to