I create new JFrame in Netbeans, and I want to make the JFrame file to be the main class, but when I try to change it in properties package run, there isn't the Jframe file.
And the navigator can't detect the main class. I try to fix the code in public static void (String[] args)
, but still can't load the main class.
Beside, I haven't added anything to the JFrame file, the default code is still from Netbeans. How to fix it?
I don't know whether this has anything to do with it or not, I use Netbeans 12.0 and jdk 15