private JPanel buildContentPanel(Map details, Set groups)
private JPanel buildContentPanel(Map details)
    private JPanel buildContentPanel(Map details, Set groups)    {        JPanel content = new JPanel();        content.setLayout(new GridBagLayout());        content.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10));        GridBagConstraints c = new GridBagConstraints();        c.fill = GridBagConstraints.HORIZONTAL;        c.anchor = GridBagConstraints.WEST;        c.insets = new Insets(3, 3, 3, 3);        Iterator i = details.keySet().iterator();        JLabel label;        JTextField area;        String key, value;        while (i.hasNext()) {            ++c.gridy;            c.gridx = 0;            key = (String) i.next();            value = (String) details.get(key);            label = UIUtilities.setTextFont(key);            c.gridwidth = GridBagConstraints.RELATIVE; //next-to-last            c.fill = GridBagConstraints.NONE;      //reset to default            c.weightx = 0.0;              content.add(label, c);            area = new JTextField(value);            area.setEditable(false);            label.setLabelFor(area);            c.gridx = 1;            c.gridwidth = GridBagConstraints.REMAINDER;     //end row            c.fill = GridBagConstraints.HORIZONTAL;            c.weightx = 1.0;            content.add(area, c);          }        if (groups != null) {           ++c.gridy;           c.gridx = 0;           JPanel bar = new JPanel();           bar.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));           i = groups.iterator();           JComponent component;           while (i.hasNext()) {               component = new GroupComponent((GroupData) i.next(), this);               bar.add(component);           }	           label = UIUtilities.setTextFont(EditorUtil.GROUPS);           c.gridwidth = GridBagConstraints.RELATIVE; //next-to-last           c.fill = GridBagConstraints.NONE;      //reset to default           c.weightx = 0.0;             content.add(label, c);           label.setLabelFor(bar);           c.gridx = 1;           c.gridwidth = GridBagConstraints.REMAINDER;     //end row           c.fill = GridBagConstraints.HORIZONTAL;           c.weightx = 1.0;           content.add(bar, c);        }       return content;    }