Answer the question
In order to leave comments, you need to log in
How to implement display of html pages on JEditorPane?
I created a frame and I'm trying to display an html page on it. But nothing works, what's the matter?
JEditorPane HTMLViewer = new JEditorPane();
frame.add(HTMLViewer);
HTMLViewer.setContentType("text/html");
HTMLViewer.setEditable(false);
try {
HTMLViewer.setPage("http://www.google.ru/");
} catch (Exception e) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question