public void mouseClicked(MouseEvent e) {
if (e.getClickCount() > 1) {
ListSelectionModel selectionModel = lstReleases.getSelectionModel();
if (!selectionModel.isSelectionEmpty()) {
DiscogsReleaseListModel releaseModel = (DiscogsReleaseListModel) lstReleases.getModel();
ArtistRelease release = releaseModel.getEx(selectionModel.getMinSelectionIndex());
if(java.awt.Desktop.isDesktopSupported()) {
java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
if(desktop.isSupported(java.awt.Desktop.Action.BROWSE)) {
try {
desktop.browse(new URI("http://www.discogs.com/release/" + release.getId()));
}
catch (Exception exc) {
// ignore any exception since it's absolutely optional feature
}
}