mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Platform: startup error dialog UI tuned a little bit
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user