diff src/name/blackcap/imageprep/Menus.kt @ 22:d3979a2155a8

Fix out qual and max dim controls.
author David Barts <n5jrn@me.com>
date Mon, 23 Nov 2020 15:45:04 -0800
parents 71029c9bf7cd
children 92afaa27f40a
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/Menus.kt	Sat Nov 21 21:25:05 2020 -0800
+++ b/src/name/blackcap/imageprep/Menus.kt	Mon Nov 23 15:45:04 2020 -0800
@@ -83,10 +83,13 @@
     }
 
     private fun doOpen() {
-        val maxDim = MaxDimSpinner(Application.settingsDialog.maxDimension)
+        val maxDim = MaxDimSpinner(Application.settingsDialog.maxDimension).apply {
+            alignmentX = LEFT_ALIGNMENT
+        }
         val acc = JPanel().apply {
             layout = BoxLayout(this, BoxLayout.Y_AXIS)
-            add(JLabel("Max. dimension:"))
+            add(Box.createGlue())
+            add(JLabel("Max. dimension:").apply { alignmentX = LEFT_ALIGNMENT })
             add(maxDim)
         }
         val chooser = JFileChooser().apply {
@@ -121,10 +124,13 @@
             Toolkit.getDefaultToolkit().beep()
             return
         }
-        val outQual = OutQualSpinner(Application.settingsDialog.outputQuality)
+        val outQual = OutQualSpinner(Application.settingsDialog.outputQuality).apply {
+            alignmentX = LEFT_ALIGNMENT
+        }
         val acc = JPanel().apply {
             layout = BoxLayout(this, BoxLayout.Y_AXIS)
-            add(JLabel("Quality:"))
+            add(Box.createGlue())
+            add(JLabel("Quality:").apply { alignmentX = LEFT_ALIGNMENT })
             add(outQual)
         }
         val outName = splitext(w.file.name).first + Application.settingsDialog.outputSuffix + ".jpg"