I'm doing a port over of codes from Processing to Netbeans Java. I'm having problems running multiple java classes. My codes are spread out into 14 classes, where my main class include only this set of codes:
package gardeningmania;
import java.io.File;
import processing.core.*;
public class GardeningMania extends PApplet{
public static void main(String[] passedArgs) {
File currentDir = new File("."); getAllFilse(currentDir);
PApplet.main(new String[]{/*"--present",*/"gardeningmania.GardeningMania"});
}
public static void getAllFilse(File currentDir) {
File[] filesList = currentDir.listFiles();
for(File f : filesList){
if(f.isDirectory()) getAllFilse(f);
if(f.isFile()){ System.out.println(f.getName()); }
}
}
}
Whenever the project is being run, only a small screen will pop-up with a gray background, however, that's all it shows. It seems to me that it's unable to read all my codes from the other 13 classes. Any ideas, anyone?