T
Tomas
Hi,
I have a Swing component and when a button is pushed i want the Componet
to start an Internet Browser with a specified file or url path.
I've tried 2 different ways to do so and get error messages with both. I
have tried with JEditorPane like this:
JEditorPane jed = new JEditorPane();
jed.setContentType("text/html");
jed.setPage("www.google.com/");
But nothing happends or i get a java.util.noSuchElementException.
And i have also tried with:
Runtime.getRuntime().exec("http://www.google.com/");
And i get an IOException there with errormessage = 2.
Any idea what is wrong?
Best regards
/Tomas
I have a Swing component and when a button is pushed i want the Componet
to start an Internet Browser with a specified file or url path.
I've tried 2 different ways to do so and get error messages with both. I
have tried with JEditorPane like this:
JEditorPane jed = new JEditorPane();
jed.setContentType("text/html");
jed.setPage("www.google.com/");
But nothing happends or i get a java.util.noSuchElementException.
And i have also tried with:
Runtime.getRuntime().exec("http://www.google.com/");
And i get an IOException there with errormessage = 2.
Any idea what is wrong?
Best regards
/Tomas