diff --git a/platform/bootstrap/src/com/intellij/idea/Main.java b/platform/bootstrap/src/com/intellij/idea/Main.java index ff3e6a52b543..373f8dbf7a38 100644 --- a/platform/bootstrap/src/com/intellij/idea/Main.java +++ b/platform/bootstrap/src/com/intellij/idea/Main.java @@ -22,6 +22,7 @@ import com.intellij.openapi.util.SystemInfoRt; import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.util.ArrayUtilRt; import com.intellij.util.Restarter; +import com.intellij.util.ui.UIUtil; import javax.swing.*; import java.awt.*; @@ -221,7 +222,7 @@ public class Main { JTextPane textPane = new JTextPane(); textPane.setEditable(false); textPane.setText(message.replaceAll("\t", " ")); - textPane.setBackground(new JPanel().getBackground()); + textPane.setBackground(UIUtil.getPanelBackground()); textPane.setCaretPosition(0); JScrollPane scrollPane = new JScrollPane( textPane, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);