Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions client/src/com/mirth/connect/client/ui/FirstLoginDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@
import static com.mirth.connect.client.core.BrandingConstants.CENTRAL_USER_REGISTRATION;
import static com.mirth.connect.client.core.BrandingConstants.MANDATORY_USER_REGISTRATION;

import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.prefs.Preferences;

import javax.swing.JDialog;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkEvent.EventType;
import javax.swing.event.HyperlinkListener;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
Expand Down Expand Up @@ -182,19 +179,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {

contentTextPane.setParagraphAttributes(set, true);
contentTextPane.setEditable(false);
contentTextPane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent evt) {
if (evt.getEventType() == EventType.ACTIVATED && Desktop.isDesktopSupported()) {
try {
if (Desktop.isDesktopSupported()) {
Desktop.getDesktop().browse(evt.getURL().toURI());
} else {
BareBonesBrowserLaunch.openURL(evt.getURL().toString());
}
} catch (Exception e) {
e.printStackTrace();
}
}
contentTextPane.addHyperlinkListener(event -> {
if (event.getEventType() == EventType.ACTIVATED) {
BareBonesBrowserLaunch.openURL(event.getURL().toString());
}
});

Expand Down