public JEditorPane(String url)
try {
JEditorPane jep = new JEditorPane("http://www.oreilly.com");
jep.setEditable(false);
JScrollPane scrollPane = new JScrollPane(jep);
f.getContentPane().add(scrollPane);
}
catch (IOException e) {
f.getContentPane().add(
new Label("Could not load http://www.oreilly.com"));
}