JPanel () { JPanel wrapper = new JPanel(new GridBagLayout()); GridBag gridBag = new GridBag().setDefaultAnchor(GridBagConstraints.NORTHWEST).setDefaultFill(GridBagConstraints.NONE).setDefaultInsets(insets(1)) .setDefaultWeightX(1).setDefaultWeightY(0); gridBag.nextLine().next().weightx(0); wrapper.add(new JBLabel(message("label.source.url")), gridBag); gridBag.next().fillCellHorizontally(); myURLLabel = new JBLabel(); myURLLabel.setFont(myURLLabel.getFont().deriveFont(Font.BOLD)); wrapper.add(myURLLabel, gridBag); gridBag.nextLine().next().weightx(0).pady(4); wrapper.add(new JBLabel(message("label.target.location")), gridBag); gridBag.nextLine().next().fillCell().weighty(1).coverLine(2); wrapper.add(myBrowser, gridBag); gridBag.nextLine().next().weightx(0).pady(4); wrapper.add(new JBLabel(message("label.target.name")), gridBag); gridBag.next().fillCellHorizontally(); myNameField = new JTextField(); wrapper.add(myNameField, gridBag); gridBag.nextLine().next().weightx(0).pady(2); wrapper.add(new JBLabel(message("label.target.url")), gridBag); gridBag.next().fillCellHorizontally(); myTargetURLLabel = new JBLabel(); myTargetURLLabel.setFont(myTargetURLLabel.getFont().deriveFont(Font.BOLD)); wrapper.add(myTargetURLLabel, gridBag); return wrapper; }