g2.setColor(Color.red);//change drawing color
    g2.draw(theBoundingBox);


Figure 7