Detected code, here are some useful tools:
Formatted code
if (jFrame == null ) {
jFrame = new JFrame();
canvas = new Canvas();
jFrame.add(canvas);
canvas.setSize(280, 280);
jFrame.setSize(280, 280);
jFrame.setVisible(true);
}
for (int x = 0; x < 28; x++) {
for (int y = 0; y < 28; y++) {
canvas.getGraphics().setColor(Color.BLUE);
System.out.println(canvas.getGraphics().getColor());
canvas.getGraphics().fillRect(x * 10, y * 10, 10, 10);
}
}