How to run an add-on in a separate thread

Zindy Minshava <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
I am creating an add-on for OpenOffice Writer in java. In my application I have the need to refresh the text displayed in a GUI on a time basis manner. 
 
That is the user should be able to work on Writer application while the add on displays  different texts on a separate GUI time to time. 
 
Do I need to use separate thread for my add- on to achieve this? Or how can I achieve these idle time intervals without effecting the Writer application?
 
Can anyone help me with this.. :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.