Alright, so I'm a beginner in Java programming and I'm not quite sure what do about this problem I'm having. So I hope someone will be able to help. Anyways, when I make a Jframe, it seems to be working properly.

As you can see, the Jframe appears and has its default grey background. You may also notice
1 2 3
| public void paint(Graphics g){ g.drawString("Testing", 320, 240); } |
is commented out.
When it isn't commented out and I run it, the Jframe loses it's background color, becomes transparent. Then freezes with what ever it was over as the background, but as you can see it still draws my string "Testing" (red box around it).

Alright, so I commented out drawString and it goes transparent, but does not freeze a background.

Any suggestions?