title: Clickable HTML link in JEditorPane
body: <p>I'd like to make all links in JEditorPane clickable. I tried to use the code from this <a href="https://stackoverflow.com/a/3693604/1946459">answer</a>, but probably I've done something wrong because nothing happens when I click on the link. Here's my code:</p>
  
  <pre><code>JEditorPane news = new JEditorPane();
  news.setSize(Size.L_NEWS);
  news.setLocation(Position.L_NEWS);
  news.setFocusable(false);
  news.setBackground(new Color(255, 255, 255, 0));
  news.setEditable(false);
  news.setEnabled(false);
  news.setOpaque(false);
  news.setVisible(true);
  news.setEditorKit(JEditorPane.createEditorKitForContentType("text/html"));
  news.setText(getNewsHTML.getNewestNews());
  try{
      UIManager.setLookAndFeel(
      UIManager.getSystemLookAndFeelClassName());
  }
  catch(Exception e){
      e.printStackTrace();
  }
  news.addHyperlinkListener(new HyperlinkListener() {
      public void hyperlinkUpdate(HyperlinkEvent e) {
          if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
              if(Desktop.isDesktopSupported()) {
                  try {
                      Desktop.getDesktop().browse(e.getURL().toURI());
                  }
                  catch (IOException | URISyntaxException e1) {
                      e1.printStackTrace();
                  }
              }
          }
      }
  }
  );
  login_form.add(news);
  </code></pre>
  
  <p>And here - my imports(maybe they are the problem):</p>
  
  <pre><code>import java.awt.Color;
  import java.awt.Desktop;
  import java.awt.Dimension;
  import java.awt.Graphics;
  import java.awt.Point;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  import java.awt.event.KeyAdapter;
  import java.awt.event.KeyEvent;
  import java.awt.event.MouseAdapter;
  import java.awt.event.MouseEvent;
  import java.awt.event.MouseMotionAdapter;
  import java.awt.image.BufferedImage;
  import java.io.IOException;
  import java.net.URI;
  import java.net.URISyntaxException;
  
  import javax.imageio.ImageIO;
  import javax.swing.BorderFactory;
  import javax.swing.ImageIcon;
  import javax.swing.JButton;
  import javax.swing.JEditorPane;
  import javax.swing.JFrame;
  import javax.swing.JLabel;
  import javax.swing.JOptionPane;
  import javax.swing.JPasswordField;
  import javax.swing.JTextField;
  import javax.swing.UIManager;
  import javax.swing.border.Border;
  import javax.swing.event.HyperlinkEvent;
  import javax.swing.event.HyperlinkListener;
  </code></pre>
  
  <p>What is wrong? I don't have any output to Eclipse's console.</p>