Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   help me with my homework (java class & GUI) (http://www.go4expert.com/forums/help-homework-java-class-gui-t1962/)

therekz 22Nov2006 12:03

help me with my homework (java class & GUI)
 
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/...rGUI.java.html
The class:
http://rapidshare.com/files/4334579/...Four.java.html


All times are GMT +5.5. The time now is 18:21.