-
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.
-
Where are you getting these libraries from?
ArchAngel.
O:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks