mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
additional tweaks to splash screen change in #329
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user