runtime-chooser: XTEST-635 fix warning icon vertical alignment (suggested by Alina)

GitOrigin-RevId: fb64e50075cf483d34b49aa3ceeae525445962f6
This commit is contained in:
Eugene Petrenko
2021-03-22 13:54:55 +00:00
committed by intellij-monorepo-bot
parent 7b444967f2
commit ce36e881ae
@@ -31,6 +31,7 @@ import java.nio.file.Path
import java.nio.file.Paths
import javax.swing.JComponent
import javax.swing.JPanel
import javax.swing.SwingConstants
sealed class RuntimeChooserDialogResult {
object Cancel : RuntimeChooserDialogResult()
@@ -136,6 +137,7 @@ class RuntimeChooserDialog(
addToCenter(JBLabel().apply {
icon = AllIcons.General.Warning
verticalTextPosition = SwingConstants.TOP
text = HtmlChunk
.html()
.addText(LangBundle.message("dialog.label.choose.ide.runtime.warn"))