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

publicvoidpaint(Graphicsg){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.

A JFrame and other Component's do not automatically refresh unless you tell them to, or some event like resizing the window causes them to. Right now you're creating your frame but never having it repaint so nothing gets updated. Assumedly showing the text the first time causes a repaint or something, not sure about that. Try doing this:

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org