From 686cb4f00920e1ce424d5e8b33d011af82ed8592 Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Thu, 18 Dec 2014 11:01:44 +0100 Subject: [PATCH] Platform: startup error dialog UI tuned a little bit --- platform/bootstrap/src/com/intellij/idea/Main.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/bootstrap/src/com/intellij/idea/Main.java b/platform/bootstrap/src/com/intellij/idea/Main.java index 4b805923cb6b..ff3e6a52b543 100644 --- a/platform/bootstrap/src/com/intellij/idea/Main.java +++ b/platform/bootstrap/src/com/intellij/idea/Main.java @@ -221,12 +221,13 @@ public class Main { JTextPane textPane = new JTextPane(); textPane.setEditable(false); textPane.setText(message.replaceAll("\t", " ")); - textPane.setBackground(Color.white); + textPane.setBackground(new JPanel().getBackground()); textPane.setCaretPosition(0); JScrollPane scrollPane = new JScrollPane( textPane, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); + scrollPane.setBorder(null); - int maxHeight = Toolkit.getDefaultToolkit().getScreenSize().height - 150; + int maxHeight = Math.min(600, Toolkit.getDefaultToolkit().getScreenSize().height - 150); Dimension component = scrollPane.getPreferredSize(); if (component.height >= maxHeight) { Object setting = UIManager.get("ScrollBar.width");