I want to open a web page after clicking a button. I have a button and a text field. in that text field i type a web address. then i click the button.after that i want to show the result in my frame. is this possible? is there a component in palette to do so? .can i open a web page in java frame instead of opening in a browser. If it's impossible please guide me to open a web page in chrome or IE using java in net beans. Thanks in advance.
i tried this in event of button .
try {
Runtime r = Runtime.getRuntime();
r.exec("C:\Users\K-9\AppData\Local\Google\Chrome\Application\chrome.exe");
} catch (Exception e) {
e.printStackTrace();
}
Am i in a correct path.?