+ else
+ {
+ try
+ {
+ // enclose url in quotes if necessary
+ String url = inUrl;
+ if (_urlNeedsQuotes) {url = "\"" + url + "\"";}
+ // Fill in url in last element of command array
+ _browserCommand[_browserCommand.length - 1] = url;
+ // execute command to launch browser
+ Runtime.getRuntime().exec(_browserCommand);
+ }
+ catch (Exception e) {
+ JOptionPane.showMessageDialog(null, "Failed to show url: " + inUrl);
+ }