I am developing a software where the users can access any website through the clicking a java button.
JButton button1 = new JButton("Click Me");
button1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent myEvent) {
// Here clicking this method will open a website
open("www.myrequiredWesite.com");
}
});
How can i call default browser from the above java source code so that the default browser will open the specific site clicking the button from java graphical user interface.