title: Printing from JEditorPane
body: <p>(I rewrite the original question. The problem is the same.)</p>
  
  <p>The above example code do not print the image. It appears in the window but not printed.</p>
  
  <pre><code>public static void main(String[] args)  {
  
          final JEditorPane ed = new JEditorPane(
                  "text/html",
                  "&lt;p&gt;Test&lt;br&gt;&lt;img  src='http://www.google.es/images/logos/ps_logo2.png'&gt;&lt;/p&gt;");
  
          JFrame f = new JFrame();
          f.setLayout(new BorderLayout());
          f.add(ed);
  
          JButton b = new JButton("Print");
          f.add(b,BorderLayout.SOUTH);
          b.addActionListener(new ActionListener() {
  
              public void actionPerformed(ActionEvent ae) {
                  try {
                      ed.print();
                  } catch (PrinterException ex) {
                      System.err.println(ex);
                  }
              }
          });
  
          f.pack();
          f.setVisible(true);
      }
  </code></pre>