Skip to content

Commit a0b83a8

Browse files
Merge pull request #26 from spbu-coding-2022/layout-fix
Fixed the problem with GroupLayout causing errors
2 parents d9e1997 + 1168166 commit a0b83a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

App/src/main/kotlin/app/App.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ private fun menuFrameInit() {
384384

385385
// contentPane - контейнер для компонентов
386386
val layout = GroupLayout(menuFrame.contentPane)
387-
menuFrame.contentPane.layout = layout
388387

389388
layout.autoCreateContainerGaps = true
390389
layout.autoCreateGaps = true
@@ -438,4 +437,6 @@ private fun menuFrameInit() {
438437
)
439438

440439
)
440+
441+
menuFrame.contentPane.layout = layout
441442
}

0 commit comments

Comments
 (0)