diff src/name/blackcap/imageprep/SettingsDialog.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 0f3634a0816d
children 9bf3d8de6904
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/SettingsDialog.kt	Sat Nov 21 21:25:05 2020 -0800
+++ b/src/name/blackcap/imageprep/SettingsDialog.kt	Mon Nov 23 15:45:04 2020 -0800
@@ -11,16 +11,10 @@
 import java.io.FileOutputStream
 import java.io.IOException
 import java.io.OutputStreamWriter
-import java.util.Hashtable
 import java.util.Properties
 import java.util.logging.Level
 import java.util.logging.Logger
 import javax.swing.*
-import javax.swing.event.ChangeEvent
-import javax.swing.event.ChangeListener
-import kotlin.math.log10
-import kotlin.math.pow
-import kotlin.math.roundToInt
 import kotlin.text.toInt
 
 /* work around name shadowing */
@@ -130,10 +124,10 @@
             add(Box(BoxLayout.X_AXIS).apply {
                 alignmentX = LEFT_ALIGNMENT
                 border = BorderFactory.createEmptyBorder(BW2, BW2, BW, BW2)
-                add(leftLabel("Maximum dimension: "))
+                add(leftLabel("Default maximum dimension: "))
                 add(_maxDimension)
                 add(Box.createGlue())
-                add(leftLabel("Output quality: "))
+                add(leftLabel("Default output quality: "))
                 add(_outputQuality)
             })
             add(Box(BoxLayout.X_AXIS).apply {
@@ -165,7 +159,6 @@
                 add(Box.createGlue())
             })
         }
-        rootPane.setDefaultButton(_ok)
         pack()
         setResizable(false)
     }