With the help of Netbeans, I made a Java desktop application. I just made another class in that package where I just added a button. I meant it for the purpose of running Java desktop application which I made earlier. When searched for the main method of appview.java (only this contains a main) there was code like this:
public static void main(String[] args) {
launch(SRECOApp.class, args);
}
I tried to put launch(SRECOApp.class, args);
in the action listener of the button, but it didn't work. Please, what should I do now?