Calling a method
Hello,
I am trying to call a method that puts a "tic tac toe" in four different places in a window - this is what I have - its not working
public class TicTacToeBoards
{
private AWindow board;
private ALine line1, line2, line3, line4;
public void TicTacToe()
{
board = new dLibrary.AWindow (10,10,300,300);
board.setTitle ("TicTacToe");
drawTicTacToeBoard(40,40);
drawTicTacToeBoard (40,170);
drawTicTacToeBoard (170,40);
drawTicTacToeBoard (170,170);
board.repaint();
}
public void drawTicTacToeBoard (int x, int y)
{
line1 = new ALine(30, 0, 30, 90);
line1.place(board);
line2 = new ALine(60, 0, 60, 90);
line2.place(board);
line3 = new ALine(0, 30, 90, 30);
line3.place(board);
line4 = new ALine(0, 60, 90, 60);
line4.place(board);
}
}
I would appreciate any help
Rob
Our task must be to free ourselves... widening our circle of compassion to embrace all living creatures and the whole of nature and its beauty.
Bookmarks