Re: how to display a URL link in a simple dialog?

From: Jacob (jacob_at_yahoo.com)
Date: 08/11/04


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);



Relevant Pages

  • Re: how to display a URL link in a simple dialog?
    ... > case, I would like to have a URL link on the dialog window, and upon user ... a new browser window will be pop up and show that ... you're already in a browser ... Also, being an external program, problems ...
    (comp.lang.java.programmer)
  • Re: Windows Mail - links in email messages dont work
    ... Windows Mail. ... URL link problem, so you'd be killing two birds with one stone. ... which is supposed to open a specific web page in your browser? ... Outlook has no effect on this. ...
    (microsoft.public.windows.vista.mail)
  • Re: File Download - IE Tries Tto Execute The File In The Browser
    ... Need more information (what workstations OS do you have). ... > I'm within a company intranet and have a program file, ... > the divisions a URL link to the file. ... IE tries to run it in the browser. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Latest Firefox 3.6.6 - I dont like it...
    ... clicking on an URL link in TB would bring up that link in ... FF is my default browser, its path is written correctly in its ... ...this is strange: having the links pointing ...
    (Ubuntu)
  • Re: how to show a URL link in a simple dialog window such as messagebox?
    ... > or warning the user about something without expecting an answer. ... > case, I would like to have a URL link on the dialog window, and upon user ... a new browser window will be pop up and show that ...
    (microsoft.public.win32.programmer.gdi)