The class below shows how to get HTML in JScrollPane.

Java Code:
public class TestShowPage {
 public static void main(String args[]) {  
  JTextPane tp = new JTextPane();
  JScrollPane js = new JScrollPane();
  js.getViewport().add(tp);
  JFrame jf = new JFrame();
  jf.getContentPane().add(js);
  jf.pack();
  jf.setSize(400,500);
  jf.setVisible(true); 
  
  try {
    URL url = new URL("http://www.java-forums.org/faq.php");
    tp.setPage(url);
    } 
  catch (Exception e) {
    e.printStackTrace();
    }
  }
 }