title: Draw text with graphics object on JFrame
body: <p>I am an avid programmer but today is my first Java lesson.</p>
  
  <pre><code>public void Paint (Graphics g)
  {
      if(g instanceof Graphics2D)
      {
          Graphics2D g2d = (Graphics2D)g;
          g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
      }
      g.drawString("This is gona be awesome", 200, 200);
  }
  </code></pre>
  
  <p>With the above code, I want to write a sentence on the window but it never writes. What am I doing wrong?</p>
  
  <p>Edit: Never mind - Paint must be paint. I apologize profusely.</p>