Skip to content

Commit

Permalink
Open browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkraljevic committed Jul 30, 2013
1 parent 012d5c4 commit b4e8c9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions launcher/src/H2OLauncher.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import java.net.URI;
import java.util.Random;
import java.awt.*;
import java.awt.event.*;
Expand Down Expand Up @@ -119,6 +120,12 @@ public void notifyHttp(final String s) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
browserField.setText(s);
try {
URI uri = new URI(s);
Desktop.getDesktop().browse(uri);
}
catch (Exception e) {
}
}
});
}
Expand Down

0 comments on commit b4e8c9d

Please sign in to comment.