src/main/java/zoot/tube/App.java
/**
     * Attempts to open the home page in the default web browser.
     */
Attempts to open the home page in the default web browser.
Attempts to open the home page in the default web browser .
private void openWebPage() {
        File home = new File("src\\main\\resources\\website\\ZootTube.html");
        String url = home.getAbsolutePath();
        System.out.println("\nOpen this file in your web browser if it doesn't open automatically:\n" + url + "\n\n");
        if (Desktop.isDesktopSupported()) {
            Desktop desktop = Desktop.getDesktop();
            if (desktop.isSupported(Desktop.Action.BROWSE)) {
                try {
                    desktop.browse(home.toURI());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
private void openWebPage ( ) { File home = new File ( "src\\main\\resources\\website\\ZootTube.html" ) ; String url = home . getAbsolutePath ( ) ; System . out . println ( "\nOpen this file in your web browser if it doesn't open automatically:\n" + url + "\n\n" ) ; if ( Desktop . isDesktopSupported ( ) ) { Desktop desktop = Desktop . getDesktop ( ) ; if ( desktop . isSupported ( Desktop . Action . BROWSE ) ) { try { desktop . browse ( home . toURI ( ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } }
Attempts to open the home page in the default web browser.
Attempts to open the home page in the default web browser .