|
Create a button object with an even listener.
In the listener's method, add:
try {
Desktop desktop = java.awt.Desktop.getDesktop();
URI oURL = new URI("http://www.google.com");// your url here
desktop.browse(oURL);
} catch (Exception e) {
e.printStackTrace();
}
In the listener's method, add:
try {
Desktop desktop = java.awt.Desktop.getDesktop();
URI oURL = new URI("http://www.google.com");// your url here
desktop.browse(oURL);
} catch (Exception e) {
e.printStackTrace();
}