g.drawRect(0, 0, size.width - 1, size.height - 1);
}
private void paintChessboard(Graphics g, ImageComponent ic) {
Dimension size = ic.getCanvasSize();
int cellSize = ic.getTransparencyChessboardCellSize();
<BUG>int patternSize = 2 * cellSize;
BufferedImage pattern = UIUtil.createImage(patternSize, patternSize, BufferedImage.TYPE_INT_ARGB);
Graphics imageGraphics = pattern.getGraphics();</BUG>
imageGraphics.setColor(ic.getTransparencyChessboardWhiteColor());
imageGraphics.fillRect(0, 0, patternSize, patternSize);

g.drawRect(0, 0, size.width - 1, size.height - 1);
}
private void paintChessboard(Graphics g, ImageComponent ic) {
Dimension size = ic.getCanvasSize();
int cellSize = ic.getTransparencyChessboardCellSize();
int patternSize = 2 * cellSize;
if (pattern == null) {
pattern = UIUtil.createImage(patternSize, patternSize, BufferedImage.TYPE_INT_ARGB);
Graphics imageGraphics = pattern.getGraphics();
imageGraphics.setColor(ic.getTransparencyChessboardWhiteColor());
imageGraphics.fillRect(0, 0, patternSize, patternSize);
