title: Clearing textbox from StdDraw to write new input
body: <p>I'm not sure if this would be a simple question to answer on here, just because I'm using the Standard Draw class written by Princeton University, and I'm not sure if it's a globally known class.</p>
  
  <p>But I'd much appreciate any feedback from those familiar with the StdDraw library.</p>
  
  <p>What I'm trying to do is fairly straight-forward; check to see if the mouse of the user clicks onto an input box I drew, and if it is clicked, clear the existing text (which simply says "input") to make an empty <code>String</code>.</p>
  
  <p>This is what it looks like so far:</p>
  
  <pre><code>public boolean handleClick(double x, double y) {
   if(!super.handleClick(x,y)){
   value = false;}
   else {
     if(highlighted){
         value = true;
         StdDraw.textLeft(xCentre+0.005,yCentre," ");} //Add the label
     else{
       value = false;}
   }
     return value; //I handled it. Nobody else should.}
  }//handleClick
  </code></pre>
  
  <p><code>super.handleClick(x,y)</code> is simply a method in the super class that draws the dimensions of the box:</p>
  
  <pre><code> public void draw(){ 
    StdDraw.setPenColor(StdDraw.WHITE);
    StdDraw.filledRectangle(xCentre,yCentre,halfWidth,halfHeight);
    StdDraw.setPenColor(StdDraw.BLACK);
    StdDraw.setPenRadius(); //Default thin line.
    StdDraw.rectangle(xCentre,yCentre,halfWidth,halfHeight);
   }
  </code></pre>
  
  <p><code>value</code> is simply an instance variable of this class that will return <code>true</code> if all conditions are satisfied:</p>
  
  <p><code>private boolean value;</code></p>
  
  <p><code>highlighted</code> is a <code>boolean</code> instance variable from the super class that simply states if the box is an input or output box.</p>
  
  <p>My main question would be, is the line</p>
  
  <p><code>StdDraw.textLeft(xCentre+0.005,yCentre," ");</code>
  the right way to clear the existing text and create an empty <code>String</code> with StdDraw? As it's not clearing the line, but maybe there's a bug elsewhere in my code that I'm missing and this line should work?</p>