comparison 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
comparison
equal deleted inserted replaced
35:bcbc92ffe0d0 36:aa9ab6cbaa26
12 import java.io.File 12 import java.io.File
13 import java.io.IOException 13 import java.io.IOException
14 import java.util.logging.Level 14 import java.util.logging.Level
15 import java.util.logging.Logger 15 import java.util.logging.Logger
16 import javax.swing.* 16 import javax.swing.*
17 import javax.imageio.ImageIO
17 18
18 /* the main frame itself */ 19 /* the main frame itself */
19 class MainFrame : JFrame(Application.MYNAME) { 20 class MainFrame : JFrame(Application.MYNAME) {
20 /* default size */ 21 /* default size */
21 val WIDTH = 512 22 val WIDTH = 512
61 return true 62 return true
62 } 63 }
63 } 64 }
64 65
65 init { 66 init {
67 if (OS.type != OS.MAC) {
68 setIconImage(ImageIO.read(this::class.java.getResourceAsStream("icon_48x48.png")))
69 }
66 contentPane.add( 70 contentPane.add(
67 JLabel("Drag image files into this window or choose File… Wash from menu.").apply { 71 JLabel("Drag image files into this window or choose File… Wash from menu.").apply {
68 horizontalAlignment = JLabel.CENTER 72 horizontalAlignment = JLabel.CENTER
69 verticalAlignment = JLabel.CENTER 73 verticalAlignment = JLabel.CENTER
70 }) 74 })