changeset 10:9bbe6d803eba

Fixed ShowDialog.
author David Barts <n5jrn@me.com>
date Fri, 10 Apr 2020 19:29:58 -0700
parents 0a106e9b91b4
children e52fd1a575de
files src/name/blackcap/exifwasher/ShowDialog.kt
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/ShowDialog.kt	Fri Apr 10 19:17:09 2020 -0700
+++ b/src/name/blackcap/exifwasher/ShowDialog.kt	Fri Apr 10 19:29:58 2020 -0700
@@ -4,6 +4,7 @@
  */
 package name.blackcap.exifwasher
 
+import java.awt.Color
 import java.awt.Dimension
 import java.awt.event.ActionEvent
 import java.awt.event.ActionListener
@@ -27,13 +28,15 @@
     private val COLUMN_NAMES = arrayOf<String>("Key", "Type", "Value")
     private val myTable = JTable(arrayOf<Array<Any>>(), COLUMN_NAMES).apply {
         autoCreateRowSorter = false
+        border = BorderFactory.createLineBorder(Color.GRAY)
+        gridColor = Color.GRAY
         rowSorter = null
+        setShowGrid(true)
     }
 
     /* deliberately not the default, because this changes a file */
     private val dismissButton = JButton("Dismiss").also {
         it.addActionListener(ActionListener { close() })
-        it.border = BorderFactory.createEmptyBorder(0, BW, 0, BW)
     }
 
     /* controls the washing of the Exif data */
@@ -99,7 +102,7 @@
             })
             add(Box(BoxLayout.X_AXIS).apply {
                 alignmentX = Box.CENTER_ALIGNMENT
-                border = BorderFactory.createEmptyBorder(BW, BW, BW2, BW)
+                border = BorderFactory.createEmptyBorder(BW, BW2, BW2, BW2)
                 add(Box.createHorizontalGlue())
                 add(dismissButton)
             })