I guess, you should look at the following pages:

http://api.openoffice.org/docs/common/ref/com/sun/star/util/URL.html
http://api.openoffice.org/docs/common/ref/com/sun/star/util/XURLTransformer.html

Since URL is a struct, you should be able to directly create it and pass
it to a XURLTransformer for validation.

> Hi,
> 
> Here is some code from StarBasic, like
> 
>  oDoc = ThisComponent
>  oUrl = oDoc.createInstance("com.sun.star.text.TextField.URL")
>  oUrl.URL = "http://www.openoffice.org";
> 
> 
> Can anyone tell me how to write the same function in Java?
> 
> (I am wondering what the "ThisComponent" represents in Java.)
> 
> Thanks.
> 
> Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to