title: Drawing graphics in java - NetBeans IDE
body: <p>I created a new JApplet form in NetBeans:</p>
  <pre><code>public class UI extends javax.swing.JApplet {
      //generated code...
  }
  </code></pre>
  <p>And a JPanel in design mode named <code>panou</code>:</p>
  <pre><code>// Variables declaration - do not modify                     
  private javax.swing.JPanel panou;
  </code></pre>
  <p>How do I get to draw a line on <code>panou</code>? I've been searching for this for 5 hours now so a code snippet and where to place it would be great. Using Graphics2D preferably.</p>