additional tweaks to splash screen change in #329

This commit is contained in:
Ben Fry
2022-01-10 19:13:51 -05:00
parent 9802ccbd88
commit 3b01a88364
2 changed files with 14 additions and 4 deletions
+9 -4
View File
@@ -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) {
+5
View File
@@ -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