help me with my homework (java class & GUI)

Discussion in 'Java' started by therekz, Nov 22, 2006.

  1. therekz

    therekz New Member

    Joined:
    Nov 22, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    I am asked to make a program called connect four, the problem is that I want to make the program works if I erase

    protected void paintComponent(Graphics g)
    {
    ...
    StringTokenizer st = new StringTokenizer(myGame.toString(), "\n");
    //st.nextToken(); <<<--- delete this line
    int i = 0;
    while (st.hasMoreTokens())
    {
    ...
    }

    in the GUI test program, but what can I do instead of modifying my GUI test program, which part of my class program that I made must I change in order to get the same output as modifying the GUI??? Please I need help

    The GUI:
    http://rapidshare.com/files/4334643/ConnectFourGUI.java.html
    The class:
    http://rapidshare.com/files/4334579/ConnectFour.java.html
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice