void () { myContentPanel = new JPanel(new GridBagLayout()); myContentPanel.setMinimumSize(new Dimension(200, 100)); final GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, JBUI.insets(1), 0, 0); myInclude = new JCheckBox(); gb.fill = GridBagConstraints.NONE; gb.weightx = 0; myContentPanel.add(myInclude, gb); // newline JLabel hereLabel = new JLabel(message("label.merge.from.url")); ++ gb.gridy; gb.gridx = 0; myContentPanel.add(hereLabel, gb); myUrlText = new JTextArea(); myUrlText.setLineWrap(true); myUrlText.setBackground(UIUtil.getLabelBackground()); myUrlText.setWrapStyleWord(true); gb.weightx = 1; ++ gb.gridx; gb.gridwidth = 2; gb.fill = GridBagConstraints.HORIZONTAL; myContentPanel.add(myUrlText, gb); // newline gb.fill = GridBagConstraints.NONE; JLabel thereLabel = new JLabel(message("label.merge.to.branch")); gb.weightx = 0; gb.gridwidth = 1; ++ gb.gridy; gb.gridx = 0; myContentPanel.add(thereLabel, gb); myBranchField = new TextFieldWithBrowseButton(); gb.weightx = 1; ++ gb.gridx; gb.gridwidth = 2; gb.fill = GridBagConstraints.HORIZONTAL; myContentPanel.add(myBranchField, gb); // newline gb.gridx = 1; ++ gb.gridy; gb.gridwidth = 1; myLocalArea = new JTextArea(); myLocalArea.setBackground(UIUtil.getLabelBackground()); myLocalArea.setLineWrap(true); myLocalArea.setWrapStyleWord(true); myContentPanel.add(myLocalArea, gb); ++ gb.gridx; gb.weightx = 0; gb.fill = GridBagConstraints.NONE; myFixedSelectLocal = new FixedSizeButton(20); myContentPanel.add(myFixedSelectLocal, gb); ++ gb.gridy; gb.gridx = 0; gb.gridwidth = 2; myMixedRevisions = new JTextArea(message("label.mixed.revision.working.copy")); myMixedRevisions.setForeground(JBColor.RED); myMixedRevisions.setBackground(myContentPanel.getBackground()); myContentPanel.add(myMixedRevisions, gb); myMixedRevisions.setVisible(false); }