Revision: 6492
http://sourceforge.net/p/jump-pilot/code/6492
Author: edso
Date: 2020-09-17 12:51:48 +0000 (Thu, 17 Sep 2020)
Log Message:
-----------
attach icon to SplashWindow early so the OJ icon is shown in task overview as
opposed to the jdk default one
Modified Paths:
--------------
core/trunk/src/com/vividsolutions/jump/workbench/ui/SplashWindow.java
Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/SplashWindow.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/SplashWindow.java
2020-09-17 04:35:01 UTC (rev 6491)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/SplashWindow.java
2020-09-17 12:51:48 UTC (rev 6492)
@@ -40,7 +40,9 @@
import javax.swing.JComponent;
import javax.swing.JFrame;
+import com.vividsolutions.jump.workbench.JUMPWorkbench;
+
/**
* Based on "Java Tip 104: Make a splash with Swing" by Tony Colston
* (http://www.javaworld.com/javaworld/javatips/jw-javatip104.html)
@@ -48,6 +50,10 @@
public class SplashWindow extends JFrame {
public SplashWindow(JComponent contents) {
super();
+
+ // attach icon early to prevent jdk default icon in task bar
+ JUMPWorkbench.setIcon(this);
+
setUndecorated(true);
setCursor(new Cursor(Cursor.WAIT_CURSOR));
if (SplashPanelV2.transparentSplash())
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel