changeset 36:aa9ab6cbaa26

Duke has been banished from the dock.
author David Barts <n5jrn@me.com>
date Thu, 30 Apr 2020 23:38:24 -0700
parents bcbc92ffe0d0
children 4fdd2f7e2cec
files build.xml src/name/blackcap/exifwasher/MainFrame.kt
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.xml	Thu Apr 30 21:22:30 2020 -0700
+++ b/build.xml	Thu Apr 30 23:38:24 2020 -0700
@@ -210,6 +210,8 @@
       <zipgroupfileset dir="${lib.home}" includes="*.jar"/>
       <zipfileset src="${work.jar}"/>
       <zipfileset dir="${src.home}" includes="**/*.properties,**/*.dll,**/*.so,**/*.dylib"/>
+      <zipfileset file="${pf.home}/linux/icon_48x48.png"
+        fullpath="name/blackcap/exifwasher/icon_48x48.png"/>
     </jar>
   </target>
 
--- a/src/name/blackcap/exifwasher/MainFrame.kt	Thu Apr 30 21:22:30 2020 -0700
+++ b/src/name/blackcap/exifwasher/MainFrame.kt	Thu Apr 30 23:38:24 2020 -0700
@@ -14,6 +14,7 @@
 import java.util.logging.Level
 import java.util.logging.Logger
 import javax.swing.*
+import javax.imageio.ImageIO
 
 /* the main frame itself */
 class MainFrame : JFrame(Application.MYNAME) {
@@ -63,6 +64,9 @@
     }
 
     init {
+        if (OS.type != OS.MAC) {
+            setIconImage(ImageIO.read(this::class.java.getResourceAsStream("icon_48x48.png")))
+        }
         contentPane.add(
             JLabel("Drag image files into this window or choose Fileā€¦ Wash from menu.").apply {
                 horizontalAlignment = JLabel.CENTER