Re: How to start default browser when clicking on a label



Hi IchBin,

IchBin wrote:

> There is a free Java program out there called BrowserLauncher. It is
> free for commercial and non-commercial use, and may be modified nearly
> to your heart's content.
>
> Find at http://browserlauncher.sourceforge.net/
>
> Here is how I have invoked it under a button.
>
> private void jLinkButton_actionPerformed() {
> try {
> BrowserLauncher.openURL(AppData.getOpenLink());
> System.out.println("BrowserLauncher.openURL(" +
> AppData.getOpenLink() + ")");
> } catch (IOException e) {
> AppError.errorMessage(e);
> }
> }

Thanks. Sounds good. I will have a look at sf.

Thanks again,
Helmut
.


Quantcast