diff --git a/src/main/kotlin/app/termora/TermoraFrame.kt b/src/main/kotlin/app/termora/TermoraFrame.kt index 4a7a136..cfea4dc 100644 --- a/src/main/kotlin/app/termora/TermoraFrame.kt +++ b/src/main/kotlin/app/termora/TermoraFrame.kt @@ -68,6 +68,7 @@ class TermoraFrame : JFrame() { FlatDesktop.setPreferencesHandler(that) } }) + dialog.setLocationRelativeTo(owner) dialog.isVisible = true } } @@ -222,7 +223,9 @@ class TermoraFrame : JFrame() { val focusWindow = KeyboardFocusManager.getCurrentKeyboardFocusManager().focusedWindow val frame = this@TermoraFrame if (focusWindow == frame) { - FindEverywhere(frame).isVisible = true + val dialog = FindEverywhere(frame) + dialog.setLocationRelativeTo(frame) + dialog.isVisible = true } } }