JEditorPane t = new JEditorPane()]; URL test= new URL("www.wikipedia.org"); t.setPage(test);
it generates the following error:
java.net.MalformedURLException: no protocol: Wikipedia
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at test.test.main(test.java:15)
java.io.IOException: invalid url
at javax.swing.JEditorPane.setPage(Unknown Source)
at test.test.main(test.java:21)