From ce36e881ae77737a933abe2e6f21bcf6550eb005 Mon Sep 17 00:00:00 2001 From: Eugene Petrenko Date: Mon, 22 Mar 2021 14:27:38 +0100 Subject: [PATCH] runtime-chooser: XTEST-635 fix warning icon vertical alignment (suggested by Alina) GitOrigin-RevId: fb64e50075cf483d34b49aa3ceeae525445962f6 --- .../projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt b/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt index 8533ed4d1c58..9ecee5ff8ac3 100644 --- a/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt +++ b/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt @@ -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"))