public static void createCanvas(){
AppSettings settings = new AppSettings(true);
settings.setWidth( Math.max(640, frame.getContentPane().getWidth()) );
settings.setHeight( Math.max(480, frame.getContentPane().getHeight()) );
app = new EditorApp();
app.setPauseOnLostFocus(false);
app.setSettings(settings);
app.createCanvas();