Logo Search packages:      
Sourcecode: pauker version File versions  Download package

static void pauker::program::gui::swing::PaukerFrame::openUrlInBrowser ( String  url  )  [inline, static]

opens a URL via BrowserLauncher in the favorite browser of the user

Parameters:
url 

Definition at line 538 of file PaukerFrame.java.

                                                    {
        try {
            List browserList = Arrays.asList(new Object[]{
                        "FireFox", "Konqueror", "Mozilla", "Opera"
                    });
            BrowserLauncher launcher = new BrowserLauncher();
            launcher.openURLinBrowser(browserList, url);
        } catch (BrowserLaunchingInitializingException ex) {
            logger.log(Level.SEVERE, "could not open URL in browser", ex);
        } catch (UnsupportedOperatingSystemException ex) {
            logger.log(Level.SEVERE, "could not open URL in browser", ex);
        }
    }


Generated by  Doxygen 1.6.0   Back to index