The third constructor

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"));
     } 

Previous | Next | Top | Cafe con Leche

Copyright 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified January 23, 2000