Hi everybody, im a new
java programmer and in the university I am, I have to learn about the new caracteristics of java6 for the "Sun Certified Java Programmer (
SCJP)" exam...
I want to make a java aplication that opens a web site inside a JDesktopPane, or another similar container like jPanel, or jEditorPane but it´s being a little difficult xD.
With this code i already opened a URL in the internet explorer:
public void inicia(){
try {
String url = jTextField1.getText();
Desktop desktop = Desktop.getDesktop();
if (desktop.isSupported(Desktop.Action.BROWSE)) {
}
desktop.browse(new URI(url));
} catch (IOException ex) {
Logger.getLogger(Interfaz.class.getName()).log(Level.SEVERE, null, ex);
} catch (URISyntaxException ex) {
Logger.getLogger(Interfaz.class.getName()).log(Level.SEVERE, null, ex);
}
}
This is what i have, but its not what i want... i want something like:
jDesktopPane1(url);
But i dont know how to show the website inside the jDesktopPane...
I had already read the post of this guy:
https://coderanch.com/t/462717/Java-FX/java/Open-Web-pages-inside-JavaFX
but im not using java FX, im using java SE with netbeans...
I want something like this, just... "open a website"
https://jdic.dev.java.net/documentation/incubator/JDICplus/ws/TabbedBrowser.jnlp
Can someone give me a light please??