Re: how to display a URL link in a simple dialog?
From: Jacob (jacob_at_yahoo.com)
Date: 08/11/04
- Next message: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- Previous message: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- In reply to: lucy: "how to display a URL link in a simple dialog?"
- Next in thread: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- Reply: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 11 Aug 2004 07:48:44 +0200
lucy wrote:
> I want to design a very simple dialog, asking a question, expect an answer;
> or warning the user about something without expecting an answer. In either
> case, I would like to have a URL link on the dialog window, and upon user
> clicking on that link, a new browser window will be pop up and show that
> webpage.
>
> I guess this should be able to done fairly easily in Java,
If you are an applet, you're already in a browser
context, and Applet.getContext().showDocument (URL)
does what you are requesting.
Otherwise this is actually not so easy, as you need
to access the client browser of which you don't really
know anything. Also, being an external program, problems
might be difficult to catch in your program.
This is probably as good as it can get:
http://geosoft.no/software/browser/Browser.java.html
Use one of:
Browser.openUrl (URL);
Browser.openUrl (String);
Browser.openUrl (File);
- Next message: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- Previous message: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- In reply to: lucy: "how to display a URL link in a simple dialog?"
- Next in thread: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- Reply: Andrew Thompson: "Re: how to display a URL link in a simple dialog?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|