From 57fcf9d607c77b0747645100dbc8fd403ecacfd2 Mon Sep 17 00:00:00 2001 From: lonnen Date: Thu, 9 Dec 2010 21:36:04 +0000 Subject: [PATCH] Added export warning if no size() was found --- app/src/processing/app/Sketch.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index 238633c62..08d680420 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -1734,7 +1734,15 @@ public class Sketch { Base.showWarning("Could not find applet size", message, null); } - } // else no size() command found + } else { + // no size() found + final String message = + "This applet appears to be missing size().\n" + + "Assuming size(" + Integer.toString(wide) + ", " + + Integer.toString(high) + ", JAVA2D)"; + + Base.showWarning("Could not find applet size", message, null); + } // Grab the Javadoc-style description from the main code. String description = "";