Mercurial > cgi-bin > hgweb.cgi > JpegWasher
diff src/name/blackcap/exifwasher/MainFrame.kt @ 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 | aafc9c127c7b |
children |
line wrap: on
line diff
--- 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