org.jpedal.utils.BrowserLauncher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenViewerFX Show documentation
Show all versions of OpenViewerFX Show documentation
Open Source (LGPL) JavaFX PDF Viewer
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* BrowserLauncher.java
* ---------------
*/
package org.jpedal.utils;
import java.net.URI;
/**
* Browser Launcer is a Class with one method,
* pass in the URL string that you want to open in
* the systems default browser window.
*/
public class BrowserLauncher {
/*
* method to be able to open urls in browsers.
*/
public static void openURL(final String url) throws Exception {
java.awt.Desktop.getDesktop().browse(new URI(url));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy