Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

how to open a web link from the application?

Thread view: 
_mario lat - 09 Mar 2005 14:09 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.