How to get output in JFrame?

I’ve wrote a program using JFram and stuff (using Youtube) and whenever I run it, there are no errors. But I only see the console and “Hello World” and not the JFram window when I click run. How do I see the window?

Replit Profile: https://replit.com/@AtharvaPatil42

Your directory structure is wrong. It also appears replit doesn’t handle package names very well.
You need to remove package Main to put it into the unnamed package. You will then also implicitly import every class in the unnamed package meaning you don’t need to import your GamePanel anymore.

Finally, your java files should be under src/main/java.

1 Like