moving back off the EDT again...

This commit is contained in:
Ben Fry
2015-06-19 17:31:03 -04:00
parent ea2cbafe1d
commit 91c2407011
+14 -14
View File
@@ -9874,20 +9874,20 @@ public class PApplet implements PConstants {
// also suspecting that these "not showing up" bugs might be EDT issues.
static public void runSketch(final String[] args,
final PApplet constructedSketch) {
EventQueue.invokeLater(new Runnable() {
public void run() {
runSketchEDT(args, constructedSketch);
}
});
}
/**
* Moving this to the EDT for 3.0a6 because that's the proper thing to do
* when messing with AWT/Swing components. And boy, do we mess with 'em.
*/
static protected void runSketchEDT(final String[] args,
final PApplet constructedSketch) {
// EventQueue.invokeLater(new Runnable() {
// public void run() {
// runSketchEDT(args, constructedSketch);
// }
// });
// }
//
//
// /**
// * Moving this to the EDT for 3.0a6 because that's the proper thing to do
// * when messing with Swing components. But mostly we're AWT, so who knows.
// */
// static protected void runSketchEDT(final String[] args,
// final PApplet constructedSketch) {
// Supposed to help with flicker, but no effect on OS X.
// TODO IIRC this helped on Windows, but need to double check.
System.setProperty("sun.awt.noerasebackground", "true");