Ep ShowHTML

try {
    String url = "http://java.sun.com";
    JEditorPane editorPane = new JEditorPane(url);
    editorPane.setEditable(false);

    JFrame frame = new JFrame();
    frame.getContentPane().add(editorPane, BorderLayout.CENTER);
    frame.setSize(width, height);
    frame.setVisible(true);
} catch (IOException e) {
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.