title: Trouble with drawString method in Graphics class
body: <p>Basically I am trying to use the drawString method, here is my code: </p>
  
  <pre><code>public void paintComponent( Graphics g )
      { 
          super.paintComponent( g );
          Graphics2D g2 = ( Graphics2D ) g;
          g2.setColor( Color.BLACK ); 
          g2.drawRect( 0, 0, 29, 29 ); 
          g2.drawString( mark, 11, 20 ); 
      }
  </code></pre>
  
  <p>I keep getting this error from Eclipse: "Open the Java build path property page of project". Does anyone know how to resolve this problem? 
  Any help will be greatly appreciated!</p>