From 3b01a88364eb73a67e46e3fdbe68cbeae821eab0 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Mon, 10 Jan 2022 19:13:51 -0500 Subject: [PATCH] additional tweaks to splash screen change in #329 --- app/src/processing/app/ui/Splash.java | 13 +++++++++---- todo.txt | 5 +++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/src/processing/app/ui/Splash.java b/app/src/processing/app/ui/Splash.java index ea2c583d8..0e531abe6 100755 --- a/app/src/processing/app/ui/Splash.java +++ b/app/src/processing/app/ui/Splash.java @@ -24,9 +24,14 @@ public class Splash extends JFrame { private Splash(File imageFile, boolean hidpi) { - - // change default java window icon to processing icon - processing.app.ui.Toolkit.setIcon(this); + // Putting this inside try/catch because it's not essential, + // and it's definitely not essential enough to prevent startup. + try { + // change default java window icon to processing icon + processing.app.ui.Toolkit.setIcon(this); + } catch (Exception e) { + // ignored + } this.image = Toolkit.getDefaultToolkit().createImage(imageFile.getAbsolutePath()); @@ -97,7 +102,7 @@ public class Splash extends JFrame { static void invokeMain(String className, String[] args) { try { Class.forName(className) - .getMethod("main", new Class[] {String[].class}) + .getMethod("main", String[].class) .invoke(null, new Object[] { args }); } catch (Exception e) { diff --git a/todo.txt b/todo.txt index 24b141696..8c61a820e 100755 --- a/todo.txt +++ b/todo.txt @@ -24,6 +24,11 @@ X https://github.com/processing/processing4/pull/288 X Move Mockito to a new version X https://github.com/processing/processing4/issues/287 +contribs +X Splash screen has default OpenJDK icon +X https://github.com/processing/processing4/pull/329 +X https://github.com/processing/processing4/issues/297 + cleaning o import option for sketchbook (button to select files/folders/etc) X use pdez instead