I'd like to open a web page from my application: how can I do?
And if I have the url like www.google.com how can I do?
I try to use html format in label an in text area but I cannot click on
link.
And if I'd like to access to an ftp document like this :
ftp://r@127.0.0.1/a.doc
how can I do?
I writhe this code:
<html><a href="ftp://r@127.0.0.1/a.doc">ftp://r@127.0.0.1/a.doc</a></html>
in textarea and jlabel but it does'n work.
How can I do?
Thank you in advance,
Mario.
Bill Tschumy - 09 Mar 2005 15:11 GMT
On Wed, 9 Mar 2005 08:09:39 -0600, mario lat wrote
(in article <DsDXd.3406$zZ1.86079@twister1.libero.it>):
> I'd like to open a web page from my application: how can I do?
>
[quoted text clipped - 15 lines]
> Thank you in advance,
> Mario.
Take a look at JavaWorld Tip #66 by Steven Spencer.
<http://www.javaworld.com/javaworld/javatips/jw-javatip66.html?>

Signature
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com
_mario lat - 09 Mar 2005 21:01 GMT
an ugly solution is:
try
{
Runtime.getRuntime().exec("explorer ftp://r:r@127.0.0.1/a.doc");
}
catch(Exception e)
{}
who knows a better solution?
Thank you in advance,
Mario.
> I'd like to open a web page from my application: how can I do?
>
[quoted text clipped - 15 lines]
> Thank you in advance,
> Mario.
Morten Alver - 10 Mar 2005 10:37 GMT
> an ugly solution is:
> try
[quoted text clipped - 6 lines]
> who knows a better solution?
> Thank you in advance,
Google for "BrowserLauncher.java".
--
Morten