import java.awt.*;public class BlankCanvas extends Canvas { Dimension minSize = new Dimension(200, 200); public BlankCanvas(Color color) { setBackground(color); } public Dimension getMinimumSize() { return minSize; } public Dimension getPreferredSize() { return minSize; } public void paint(Graphics g) { Dimension size = getSize(); g.drawRect(0, 0, size.width - 1, size.height - 1); }}