Calling a method


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Calling a method

  1. #1
    Join Date
    Jul 2003
    Posts
    12

    Unhappy 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.

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center