JBLabel () { JBLabel label = new JBLabel(message("label.merge.local.changes.intersection")) { @Override public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); return new Dimension(size.width, (int)(size.height * 1.7)); } }; label.setUI(new MultiLineLabelUI()); label.setBackground(UIUtil.getTextFieldBackground()); label.setVerticalTextPosition(SwingConstants.TOP); return label; }