Netbeans versus JavaEditor: main class?
I created several small applets and classes, in separate directories, using JavaEditor, which run fine (also using JavaEditor: Applet Viewer) or running the .html file in a webbrowser. If I try to run the same applets in NetBeans (6.9) however I get the error message 'no main class found'. Indeed I have no classes with the name 'main', but in JavaEditor that is not an issue? I do however have a method init() in each applet, as I learned that an applet should have such a method. Can I instruct NetBeans to look for an init() method instead of a main() method?
I imported the files in the directory containing the original source files into a NetBeans Project, set the Project as the Main project.
All I want is to start editing my existing java source code in NetBeans instead of JavaEditor. Should I make changes to the source code in order to be able to make that switch?