comparison src/name/blackcap/exifwasher/Misc.kt @ 55:f5faf70c7d10

tabs to spaces
author David Barts <davidb@stashtea.com>
date Thu, 07 May 2020 14:21:23 -0700
parents 40911898ed23
children
comparison
equal deleted inserted replaced
54:40911898ed23 55:f5faf70c7d10
223 /** 223 /**
224 * Add a border to a JComponent. The new border is in addition to (and outside 224 * Add a border to a JComponent. The new border is in addition to (and outside
225 * of) whatever existing standard border the component had. 225 * of) whatever existing standard border the component had.
226 */ 226 */
227 fun JComponent.addBorder(b: Border) { 227 fun JComponent.addBorder(b: Border) {
228 if (border == null) 228 if (border == null)
229 border = b 229 border = b
230 else 230 else
231 border = BorderFactory.createCompoundBorder(b, border) 231 border = BorderFactory.createCompoundBorder(b, border)
232 } 232 }