title: Is it possible to draw an image or text on a JFrame?
body: <p>Is it possible to draw on a <code>JFrame</code> without adding a <code>JPanel</code> to it?</p>
  
  <p>i override <code>paintComponents()</code> but it didn't show anything.</p>
  
  <pre><code> @Override
  public void paintComponents(Graphics g) {
      super.paintComponents(g);
      g.drawString("for test", 10, 10);
  }
  </code></pre>