diff src/name/blackcap/exifwasher/ShowDialog.kt @ 5:dc1f4359659d

Got it compiling.
author David Barts <n5jrn@me.com>
date Thu, 09 Apr 2020 18:20:34 -0700
parents 19c381c536ec
children 65d14d44bc3f
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/ShowDialog.kt	Wed Apr 08 21:31:30 2020 -0700
+++ b/src/name/blackcap/exifwasher/ShowDialog.kt	Thu Apr 09 18:20:34 2020 -0700
@@ -4,6 +4,7 @@
  */
 package name.blackcap.exifwasher
 
+import java.awt.Dimension
 import java.awt.event.ActionEvent
 import java.awt.event.ActionListener
 import java.io.File
@@ -46,8 +47,8 @@
         swingWorker<Array<Array<String>>?> {
             inBackground {
                 try {
-                    val image = Image(image.absolutePath)
-                    val meta = image.meta
+                    val openedImage = Image(image.absolutePath)
+                    val meta = openedImage.metadata
                     val keys = meta.keys
                     keys.sort()
                     Array<Array<String>>(keys.size) {
@@ -79,9 +80,9 @@
         }
     }
 
-    private class MyTableModel : DefaultTableModel {
+    private class MyTableModel(tData: Array<Array<String>>, cNames: Array<String>) : DefaultTableModel(tData, cNames) {
         override fun isCellEditable(row: Int, col: Int) = false
-        override fun getColumnClass(col: Int) = java.lang.String::class.java
+        override fun getColumnClass(col: Int) = String::class.java
     }
 
     init {