comparison 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
comparison
equal deleted inserted replaced
53:61a06e050bac 54:40911898ed23
216 private val BW = parent.BW 216 private val BW = parent.BW
217 private val BW2 = parent.BW2 217 private val BW2 = parent.BW2
218 218
219 private val toAdd = JTextField(40).apply { 219 private val toAdd = JTextField(40).apply {
220 alignmentX = CENTER_ALIGNMENT 220 alignmentX = CENTER_ALIGNMENT
221 border = BorderFactory.createEmptyBorder(BW, BW, BW, BW) 221 addBorder(BorderFactory.createEmptyBorder(BW, BW, BW, BW))
222 } 222 }
223 223
224 private val cancelButton = JButton("Cancel").also { 224 private val cancelButton = JButton("Cancel").also {
225 it.addActionListener(ActionListener { 225 it.addActionListener(ActionListener {
226 toAdd.text = "" 226 toAdd.text = ""
328 addTab("Whitelist", JPanel().apply { 328 addTab("Whitelist", JPanel().apply {
329 border = BorderFactory.createEmptyBorder(BW, BW, BW, BW) 329 border = BorderFactory.createEmptyBorder(BW, BW, BW, BW)
330 layout = BoxLayout(this, BoxLayout.Y_AXIS) 330 layout = BoxLayout(this, BoxLayout.Y_AXIS)
331 add(JScrollPane(wlSelector).apply { 331 add(JScrollPane(wlSelector).apply {
332 alignmentX = CENTER_ALIGNMENT 332 alignmentX = CENTER_ALIGNMENT
333 border = BorderFactory.createEmptyBorder(BW, BW, BW, BW) 333 addBorder(BorderFactory.createEmptyBorder(BW, BW, BW, BW))
334 verticalScrollBarPolicy = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS 334 verticalScrollBarPolicy = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS
335 horizontalScrollBarPolicy = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER 335 horizontalScrollBarPolicy = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER
336 }) 336 })
337 add(Box.createVerticalGlue()) 337 add(Box.createVerticalGlue())
338 add(Box(BoxLayout.X_AXIS).apply { 338 add(Box(BoxLayout.X_AXIS).apply {