Skip to content

Commit 5ebb9e5

Browse files
committed
Center windows by default
1 parent 6b56a89 commit 5ebb9e5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/kotlin/be/ugent/topl/mio/ui/InteractiveDebugger.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ class InteractiveDebugger(
347347
debugger.close()
348348
}
349349
})
350+
setLocationRelativeTo(null)
350351
defaultCloseOperation = EXIT_ON_CLOSE
351352
isVisible = true
352353
}

src/main/kotlin/be/ugent/topl/mio/ui/StartScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import javax.swing.*
1616

1717
open class StartScreen(config: DebuggerConfig) : AboutScreen(config) {
1818
init {
19+
setLocationRelativeTo(null)
1920
defaultCloseOperation = EXIT_ON_CLOSE
2021
}
2122

0 commit comments

Comments
 (0)