protected JComponent createDialogContentPane() {
JPanel panel = new JPanel(new FormLayout(new ColumnSpec[] {FormFactory.DEFAULT_COLSPEC , FormFactory.RELATED_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT,
ColumnSpec.DEFAULT_GROW)}, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC }));
CommandManager commandManager = Application.instance().getActiveWindow().getCommandManager();
List<Object> members = new ArrayList<Object>();
for (int i = 0; i < commandIds.length; i++) {
members.add(commandManager.getCommand(commandIds[i]));
}
CellConstraints cc = new CellConstraints();
CommandGroupFactoryBean commandGroupFactory = new CommandGroupFactoryBean("buttonBar", members.toArray());