/** Copyright (C) 2014 by jabelar This file is part of jabelar's Minecraft Forge modding examples; as such, you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. For a copy of the GNU General Public License see <http://www.gnu.org/licenses/>. */ package com.blogspot.jabelarminecraft.wildanimals; import java.awt.Desktop; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import net.minecraft.client.gui.ScaledResolution; public class Browser { public static void browse(String parUrl) { // Create Desktop object Desktop d=Desktop.getDesktop(); // Browse a URL, say google.com try { d.browse(new URI(parUrl)); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } ScaledResolution sr; } }