title: How do i draw a full Webpage using Java Swing?
body: <p>i tried to draw a full webpage in Java Swing, but it looks awful. What does it need to look like in Chrome or some other explorer?</p>
  
  <p>It looks like this:<br>
  <img src="https://i.ibb.co/VShNqq3/Image.png" width="512" height="288">
  <img src="https://i.ibb.co/NWk47B9/Image.png" width="512" height="288"><br>
  and not like a normal video on youtube.<br>
  Source:  </p>
  
  <pre><code>    JEditorPane jep = new JEditorPane();
      jep.setEditable(false);   
  
      try {
        jep.setPage("https://www.youtube.com/watch?v=EcdbEax46bA");
      }catch (IOException e) {
        jep.setContentType("text/html");
        jep.setText("&lt;html&gt;Could not load&lt;/html&gt;");
      } 
  
      JScrollPane scrollPane = new JScrollPane(jep);     
      JFrame f = new JFrame("Test HTML");
      f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      f.getContentPane().add(scrollPane);
      f.setPreferredSize(new Dimension(800,600));
      f.setVisible(true);
  </code></pre>
  
  <p>So what do i need to view a full webpage?</p>