return item;
}
protected void showUrl(URL dest) {
Desktop desktop = null;
// Before more Desktop API is used, first check
// whether the API is supported by this particular
// virtual machine (VM) on this particular host.
if (Desktop.isDesktopSupported()) {
Logger.getLogger(App.class.getName()).log(Level.INFO, "Getting Desktop");
desktop = Desktop.getDesktop();
try {
Logger.getLogger(App.class.getName()).log(Level.INFO, "Browse Command");
desktop.browse(dest.toURI());
Logger.getLogger(App.class.getName()).log(Level.INFO, "showURl Complete");
} catch (Exception ex) {
JOptionPane.showMessageDialog(null,
"Exception: " + ex.getMessage());
}