JPanel () { if (! myWcRootIsAbove) { return null; } final JPanel result = new JPanel(new GridBagLayout()); GridBagConstraints gb = new GridBagConstraints(); gb.insets = JBUI.insets(2); gb.weightx = 1; gb.weighty = 0; gb.gridwidth = 2; gb.gridheight = 1; gb.gridx = 0; gb.gridy = 0; gb.anchor = GridBagConstraints.WEST; gb.fill = GridBagConstraints.HORIZONTAL; final JLabel iconLabel = new JLabel(Messages.getWarningIcon()); result.add(iconLabel, gb); ++ gb.gridx; JLabel warningLabel = new JLabel(message("label.working.copy.root.outside.text")); warningLabel.setFont(warningLabel.getFont().deriveFont(Font.BOLD)); warningLabel.setUI(new MultiLineLabelUI()); result.add(warningLabel); return result; }