well basically this is what iv done so far
import javax.swing.JApplet;
import java.awt.Color;
import java.awt.Graphics;
import java.util.Random;
import java.applet.Applet;
public class Checkers extends Applet
{
//two final variables that have the number of columns and rows
private final int COL = 8;
private final int ROW = 8;
//defines some variables
private int width;
private int height;
private int colWidth;
private int rowHeight;
Checker[][] board;
public void init()
{
//init the 2 dimensional array
board = new Checker [ROW][COL];
//gets the width and height from the HTML
String stringWidth = getParameter("width");
String stringHeight = getParameter("height");
//converts this from string to and int number
width = Integer.parseInt(stringWidth);
height = Integer.parseInt(stringHeight);
colWidth = width/COL;
rowHeight = height/ROW;
}
public void paint(Graphics page)
{
//two for loop so create the grid lines
for (int i = 0; i <= COL; i++)
{
page.drawLine (i * colWidth, 0 , i * colWidth, height); //vertical lines
}
for (int i = 0; i <= ROW; i++)
{
page.drawLine (i * rowHeight, 0, i * rowHeight, width); //horizontal lines
}
}
}
im just at a loss of what to do next. but ill go to the beginner's forum, i didnt no there was one.