Please help with graphics checkerboard

My checker board is not showing and I can't tell why. Here is the code:

import javax.swing.JFrame;

import javax.swing.JPanel;

//import java.awt.Font;

import java.awt.Color;

import java.awt.Graphics;

publicclass checkerBoard

{

publicstaticvoid main(String[] args)

{

JFrame frame =new JFrame("My Checkers Board");

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

DrawCheckers drawCheckers =new DrawCheckers();

frame.add(drawCheckers);

frame.setSize(515,535);

frame.setVisible(true);

}

}

class DrawCheckersextends JPanel

{

publicvoid paintComponents(Graphics g)

{

super.paintComponent(g);

setBackground(Color.CYAN);

// draws red filled boxes

g.setColor(Color.RED);

for(int y=50; y<=400;y+=50)

{

for(int x=50; x<=400; x+=50)

{

g.fillRect(x,y,50,50);

}

}

//draws gray filled boxes

g.setColor(Color.RED);

for(int y=50; y<=400;y+=100)

{

for(int x=50; x<=400; x+=100)

{

if(y>=300)

g.fillRect(x,y,50,50);

g.fillRect(x=50,y+50,50,50);

}

}

//draws red disks

g.setColor(Color.RED);

for(int y=55; y<=400;y+=100)

{

for(int x=55; x<=400; x+=100)

{

g.fillOval(x,y,40,40);

if(y<200)

g.fillOval(x=50,y+50,40,40);

}

}

//draws black outlines

g.setColor(Color.BLACK);

for(int y=50; y<=400;y+=50)

{

for(int x=50; x<=400; x+=50)

{

g.drawRect(x,y,50,50);

}

}

}

}

It does not draw the squares or the checkers.

[3667 byte] By [weziwa] at [2007-11-26 15:44:03]
# 1
1) public void paintComponents(Graphics g)the method is not plural2)g.fillRect(x=50,....couple of these - causes an infinite loop (remove the ' = 50')
Michael_Dunna at 2007-7-8 22:03:04 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks allot Micheal, that worked!
weziwa at 2007-7-8 22:03:04 > top of Java-index,Java Essentials,Java Programming...