re: Why won't my JFrame open when I compile my code. VIEW POST

FULL DISCUSSION
 

on Line 27
public void main(String[] args)
should be
public static main(String[] args)

Java only starts running a program with the specific public static void main(String[] args) signature, and one can think of a signature like their own name - it's how Java can tell the difference between someone else's main() and the one true main().

 

Thanks, now I continue the development of my game! :D

code of conduct - report abuse