code: protected void drawCheckerBoard(Graphics2D g2d) {
  		g2d.setColor(getBackground());
  		g2d.fillRect(0, 0, getWidth(), getHeight());
  		g2d.setColor(getForeground());
  		
  		final int checkSize = this.checkerSize;
  		final int halfCheckSize = checkSize/2;
  		final Stroke checker = this.checkerStroke;
  		final Stroke backup = g2d.getStroke();
  		g2d.setStroke(checker);
  		final int width = this.getWidth()+checkSize;
  		final int height = this.getHeight()+checkSize;
  		for(int i = halfCheckSize; i < height; i+=checkSize*2){
  			g2d.drawLine(halfCheckSize, i, width, i);
  			g2d.drawLine(checkSize+halfCheckSize, i+checkSize, width, i+checkSize);
  		}
  		g2d.setStroke(backup);
  	}
docs: Draws the checkerboard background to the specified graphics context.
  @param g2d graphics context to draw on
  @since 1.4