diff src/name/blackcap/exifwasher/SettingsDialog.kt @ 54:40911898ed23

Fix multiple border glitches.
author davidb
date Thu, 07 May 2020 14:05:40 -0700
parents aafc9c127c7b
children
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/SettingsDialog.kt	Thu May 07 12:33:52 2020 -0700
+++ b/src/name/blackcap/exifwasher/SettingsDialog.kt	Thu May 07 14:05:40 2020 -0700
@@ -218,7 +218,7 @@
 
         private val toAdd = JTextField(40).apply {
             alignmentX = CENTER_ALIGNMENT
-            border = BorderFactory.createEmptyBorder(BW, BW, BW, BW)
+            addBorder(BorderFactory.createEmptyBorder(BW, BW, BW, BW))
         }
 
         private val cancelButton = JButton("Cancel").also {
@@ -330,7 +330,7 @@
                     layout = BoxLayout(this, BoxLayout.Y_AXIS)
                     add(JScrollPane(wlSelector).apply {
                         alignmentX = CENTER_ALIGNMENT
-                        border = BorderFactory.createEmptyBorder(BW, BW, BW, BW)
+                        addBorder(BorderFactory.createEmptyBorder(BW, BW, BW, BW))
                         verticalScrollBarPolicy = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS
                         horizontalScrollBarPolicy = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER
                     })