title: Your web browser must have JavaScript enabled in order for this application to display correctly
body: <p>I displayed webpage on JEditorPane, but it is getting message as "<strong>Your web browser must have JavaScript enabled in order for this application to display correctly.</strong>"</p>
  
  <p><img src="https://i.stack.imgur.com/uPrA2.png" alt="enter image description here"></p>
  
  <p>Below is code </p>
  
  <pre><code>import java.io.IOException;
  
  import javax.swing.JEditorPane;
  import javax.swing.JFrame;
  import javax.swing.JScrollPane;
  
  public class EricPage {
  
      public EricPage() {
      }
  
      public static void main(String[] args) {
  
           JEditorPane jep = new JEditorPane();
           jep.setEditable(false);   
  
           try {
             jep.setPage("http://corp.netsapiens.com");
           }
           catch (IOException e) {
             jep.setContentType("text/html");
             jep.setText("&lt;html&gt;Could not load Web Site");
           } 
  
           JScrollPane scrollPane = new JScrollPane(jep);     
           JFrame f = new JFrame("Display WebPage");
           // Next line requires Java 1.3
           f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           f.getContentPane().add(scrollPane);
           f.setSize(512, 342);
           f.show();
  }
  }
  </code></pre>
  
  <p>Please let me know how to resolve</p>