title: How to Draw a Horizontal Line in Java Swing
body: <p>How does one draw a horizontal line using the Java Swing library?  I know that I need to override <code>paint(Graphics g)</code> but I am not sure what to put in the method.</p>
  
  <pre><code>@Override
  public void paint(Graphics g)
  {
     // What goes here?
  }
  </code></pre>