Java Label Reset
<pre><code>for (int i = 0; i &lt; 5; i++)
    {
        for (int j = 0; j &lt; 5; j++)
        {
            theSquare = letterTiles[i][j];

            if( (mouseX &gt;= theSquare.getX()) &amp;&amp; (mouseX &lt;= (theSquare.getX() + theSquare.getSize())) &amp;&amp;   
                (mouseY &gt;= theSquare.getY()) &amp;&amp; (mouseY &lt;= (theSquare.getY() + theSquare.getSize()))
              ) 
            {                       
                // Found the square.  Accumulate the letter for this Square and display
                gameMessagesLabel.setLabel (gameMessagesLabel.getLabel() + theSquare.getLabel());
            }
        }
    }
</code></pre>

<p>The sample code is above. What this code does is checks to see if the mouse is clicking a certain square. And if the mouse clicks on that square, the label known as "gameMessagesLabel" will copy what the square has on it. So if I click on a square that has the letter 'A', then the label will now display the letter 'A' as well as any other letters I click on. </p>

<p>The question I have is how do I make the label blank right before I click on the square without disrupting any other code? Thank for the help, and sorry if this question is not specific enough, this is my first time using this.  </p>
