title: Simple Java 2D graphics: draw a rectangle?
body: <p>I'm trying to get a Java 2D graphics "hello world" going, and am finding it strangely difficult (ie, I'm Googling variations of "java hello world example" and coming up empty).  Can anyone help me with a minimal hellow world example?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>This is a good starting point though, <a href="http://docs.oracle.com/javase/tutorial/uiswing/painting/index.html" rel="noreferrer">"The Java Tutorials: Performing Custom Painting"</a>.</p>