I am at school and i am just messing around and this loop will not loop:
I am at school and i am just messing around and this loop will not loop:
Are you sure?
Try adding a printout to System.Out that prints the string you're trying to draw. I'm willing to bet it's looping like mad, so much in fact that you never complete the paint method because you're stuck in the loop ;)
I'm not versed in Java awt much, but I do believe you're supposed to call g.setFont before you can draw text.
Without seeing the context in which the paint method is called, it's hard to guess at what's going on. That for loop, however should run forever.
You should never put your game loop inside of your paint method, because it will never repaint the screen.
Make another method that calls the paint method ever time that loop loops using "repaint()".