new HyperlinkLabel.OnClick() {
@Override
public void onClickDo(final MouseEvent me) {
if (Desktop.isDesktopSupported()) {
final Desktop desktop = Desktop.getDesktop();
try {
desktop.browse(new URI("http://www.dcaiti.com"));
} catch (final Exception e) {
e.printStackTrace();
}
}
}
});
creditsLabel = new JLabel("Credits: Map Icons Collection");
creditsLinkLabel = new HyperlinkLabel(
"<html><a href=\"http://mapicons.nicolasmollet.com\">http://mapicons.nicolasmollet.com</a></html>\"",
new HyperlinkLabel.OnClick() {
@Override
public void onClickDo(final MouseEvent me) {
if (Desktop.isDesktopSupported()) {
final Desktop desktop = Desktop.getDesktop();
try {
desktop.browse(new URI("http://mapicons.nicolasmollet.com"));
} catch (final Exception e) {
e.printStackTrace();
}
}
}