org.nuiton.util
Class DesktopUtil
java.lang.Object
org.nuiton.util.DesktopUtil
public class DesktopUtil
- extends Object
Utility class for methods to interact with Desktop Environment
- Since:
- 2.4.3
- Author:
- jcouteau
|
Method Summary |
static void |
browse(URI uri)
Method to open an URI in the user default web browser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesktopUtil
public DesktopUtil()
browse
public static void browse(URI uri)
- Method to open an URI in the user default web browser. It uses the Java
Desktop API on Windows and Gnome environment and xdg-open on other
platforms (non-gnome linux distribution for example).
A Bug report have been opened in 2006 so that java.awt.Desktop can
support all environments but it is not fixed yet :
http://bugs.sun.com/view_bug.do?bug_id=6486393 this utility method should
be removed when the bug is fixed.
- Parameters:
uri - the URI to open
Copyright © 2004-2012 CodeLutin. All Rights Reserved.