@@ -472,6 +472,9 @@ protected int getDividerLocation() {
472472 * with things in the Preferences window.
473473 */
474474 protected void applyPreferences () {
475+ // All of this code was specific to using an external editor.
476+ // Keeping this around so we can update fonts.
477+ /*
475478// // apply the setting for 'use external editor'
476479// boolean external = Preferences.getBoolean("editor.external");
477480// textarea.setEditable(!external);
@@ -494,7 +497,7 @@ protected void applyPreferences() {
494497// }
495498
496499 // apply changes to the font size for the editor
497- painter .setFont (Preferences .getFont ("editor.font" ));
500+ // painter.setFont(Preferences.getFont("editor.font"));
498501
499502 // in case tab expansion stuff has changed
500503 // removing this, just checking prefs directly instead
@@ -505,6 +508,7 @@ protected void applyPreferences() {
505508 //sketchbook.rebuildMenus();
506509 // For 0126, moved into Base, which will notify all editors.
507510 //base.rebuildMenusAsync();
511+ */
508512 }
509513
510514
@@ -2007,6 +2011,9 @@ protected boolean checkModified() {
20072011 // As of Processing 1.0.10, this always happens immediately.
20082012 // http://dev.processing.org/bugs/show_bug.cgi?id=1456
20092013
2014+ // With Java 7u40 on OS X, need to bring the window forward.
2015+ toFront ();
2016+
20102017 String prompt = "Save changes to " + sketch .getName () + "? " ;
20112018
20122019 if (!Base .isMacOS ()) {
0 commit comments