comparison src/name/blackcap/clipman/CoerceDialog.kt @ 33:277cbb78bc5a

A few tweaks. Piece of shit still can't left-align its labels. Sigh.
author David Barts <n5jrn@me.com>
date Thu, 30 Jan 2020 18:27:03 -0800
parents 4d87bedb3f65
children 376643a09b52
comparison
equal deleted inserted replaced
32:4d87bedb3f65 33:277cbb78bc5a
90 init { 90 init {
91 title = "Coerce Fonts" 91 title = "Coerce Fonts"
92 contentPane.apply { 92 contentPane.apply {
93 add(Box(BoxLayout.Y_AXIS).apply { 93 add(Box(BoxLayout.Y_AXIS).apply {
94 alignmentX = Box.CENTER_ALIGNMENT 94 alignmentX = Box.CENTER_ALIGNMENT
95 add(JLabel("Coerce proportionally-spaced text to:").apply { 95 add(JLabel("Coerce proportionally-spaced text to…").apply {
96 horizontalAlignment = JLabel.CENTER 96 horizontalAlignment = JLabel.CENTER
97 alignmentX = JLabel.CENTER_ALIGNMENT 97 alignmentX = JLabel.CENTER_ALIGNMENT
98 border = BorderFactory.createEmptyBorder(BW2, BW2, BW, BW2) 98 border = BorderFactory.createEmptyBorder(BW2, BW2, BW, BW2)
99 }) 99 })
100 add(Box(BoxLayout.X_AXIS).apply { 100 add(Box(BoxLayout.X_AXIS).apply {
116 add(_pSize) 116 add(_pSize)
117 }) 117 })
118 add(Box.createGlue()) 118 add(Box.createGlue())
119 }) 119 })
120 add(JSeparator()) 120 add(JSeparator())
121 add(JLabel("Coerce monospaced text to:").apply { 121 add(JLabel("Coerce monospaced text to…").apply {
122 horizontalAlignment = JLabel.CENTER 122 horizontalAlignment = JLabel.CENTER
123 alignmentX = JLabel.CENTER_ALIGNMENT 123 alignmentX = JLabel.CENTER_ALIGNMENT
124 border = BorderFactory.createEmptyBorder(BW2, BW2, BW, BW2) 124 border = BorderFactory.createEmptyBorder(BW, BW2, BW, BW2)
125 }) 125 })
126 add(Box(BoxLayout.X_AXIS).apply { 126 add(Box(BoxLayout.X_AXIS).apply {
127 border = BorderFactory.createEmptyBorder(0, BW2, BW, BW2) 127 border = BorderFactory.createEmptyBorder(0, BW2, BW, BW2)
128 add(Box.createGlue()) 128 add(Box.createGlue())
129 add(Box(BoxLayout.Y_AXIS).apply { 129 add(Box(BoxLayout.Y_AXIS).apply {
143 }) 143 })
144 add(Box.createGlue()) 144 add(Box.createGlue())
145 }) 145 })
146 add(JSeparator()) 146 add(JSeparator())
147 add(Box(BoxLayout.X_AXIS).apply { 147 add(Box(BoxLayout.X_AXIS).apply {
148 border = BorderFactory.createEmptyBorder(BW2, BW2, BW2, BW2) 148 border = BorderFactory.createEmptyBorder(BW, BW2, BW, BW2)
149 add(Box.createGlue()) 149 add(Box.createGlue())
150 add(_cancel) 150 add(_cancel)
151 add(Box.createGlue()) 151 add(Box.createGlue())
152 add(_coerce) 152 add(_coerce)
153 add(Box.createGlue()) 153 add(Box.createGlue())