if (tempGraphics != null){
tempGraphics.drawLine(tempTopX, tempTopY, tempBottomX, tempTopY);
tempGraphics.drawLine(tempBottomX, tempTopY, tempBottomX, tempBottomY);
tempGraphics.drawLine(tempTopX, tempTopY, tempTopX, tempBottomY);
tempGraphics.drawLine(tempTopX, tempBottomY, tempBottomX, tempBottomY);
// draw the points marking the corners
tempGraphics.drawOval(tempTopX, tempTopY, 4,4);
tempGraphics.drawOval(tempTopX, tempBottomY, 4,4);
tempGraphics.drawOval(tempBottomX, tempTopY, 4,4);