categoryPanel.add(b, gbc2);
gbc2.gridy++;
group.add(b);
maxWidth = Math.max(maxWidth, b.getPreferredSize().width);
}
CategoryPanel p = new CategoryPanel(categoryPanel, category);
maxWidth = Math.max(maxWidth, p.getPreferredSize().width);
p.setExpanded(false);
add(p, gbc1);
gbc1.gridy++;
if (category.getName().equals(
INFO_CTRL_PANEL_CATEGORY_DIRECTORY_DATA.get()))
{
p.setExpanded(true);
}
}
add(Box.createHorizontalStrut(maxWidth), gbc1);
gbc1.gridy ++;
gbc1.weighty = 1.0;