net.sac.util
Class PlatformTool

java.lang.Object
  extended by net.sac.util.PlatformTool

public class PlatformTool
extends java.lang.Object


Constructor Summary
PlatformTool()
           
 
Method Summary
static void addOkCancelButtons(javax.swing.JPanel panel, javax.swing.JButton okButton, javax.swing.JButton cancelButton)
           
static boolean isMac()
           
static boolean isWindows()
           
static void launchBrowser(java.lang.String url)
          Attempt to launch a browser to the given URL.
static void launchBrowser(java.net.URL url)
          Attempt to launch a browser to the given URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformTool

public PlatformTool()
Method Detail

isMac

public static boolean isMac()

isWindows

public static boolean isWindows()

addOkCancelButtons

public static void addOkCancelButtons(javax.swing.JPanel panel,
                                      javax.swing.JButton okButton,
                                      javax.swing.JButton cancelButton)

launchBrowser

public static void launchBrowser(java.net.URL url)
                          throws java.lang.Exception
Attempt to launch a browser to the given URL. Code courtesy of Bare Bones Browser Launch code from "http://www.centerkey.com/java/browser/".

Parameters:
url -
Throws:
java.lang.Exception

launchBrowser

public static void launchBrowser(java.lang.String url)
                          throws java.lang.Exception
Attempt to launch a browser to the given URL. Code courtesy of Bare Bones Browser Launch code from "http://www.centerkey.com/java/browser/".

Parameters:
url -
Throws:
java.lang.Exception