JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.insets = JBUI.insets(2); gc.gridwidth = 1; gc.gridheight = 1; gc.gridx = 0; gc.gridy = 0; gc.anchor = GridBagConstraints.WEST; gc.fill = GridBagConstraints.NONE; gc.weightx = 0; gc.weighty = 0; JLabel commentLabel = new JLabel(SvnBundle.message("label.lock.comment")); panel.add(commentLabel, gc); gc.gridy += 1; gc.weightx = 1; gc.weighty = 1; gc.fill = GridBagConstraints.BOTH; myLockTextArea = new JTextArea(7, 25); JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myLockTextArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scrollPane.setMinimumSize(scrollPane.getPreferredSize()); panel.add(scrollPane, gc); commentLabel.setLabelFor(myLockTextArea); gc.gridy += 1; gc.weightx = 0; gc.weighty = 0; gc.fill = GridBagConstraints.NONE; myForceCheckBox = new JCheckBox(SvnBundle.message("label.locl.steal.existing")); panel.add(myForceCheckBox, gc); gc.gridy += 1; gc.weightx = 1; gc.fill = GridBagConstraints.HORIZONTAL; panel.add(new JSeparator(), gc); return panel; }