builderSG.append(m_sgRegExp, 3);
m_optionsPanel.add(builderSG.getPanel(), "" + INDEX_SEARCHGROUP);
// ... for buttons panel
FormLayout layoutBP = new FormLayout("pref, 4dlu, pref", "p");
layoutBP.setColumnGroups(new int[][] { { 1, 3 } });
ButtonBarBuilder builderBP = new ButtonBarBuilder();
builderBP.addGlue();
builderBP.addGridded(m_ok);
builderBP.addGridded(m_cancel);
builderBP.addGlue();
builderBP.getPanel().setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
// create layout
FormLayout layoutAll = new FormLayout(
"right:pref, 4dlu, fill:600px, 4dlu, fill:pref",
"p, 3dlu, p, 3dlu, p, 0dlu, p, 0dlu, p, 3dlu, p, 3dlu, p, "
+ "0dlu, p, 0dlu, p, 3dlu, p, 3dlu, "
+ "p, 3dlu, p, 3dlu, top:80dlu, 9dlu, p, 9dlu, p");
DefaultFormBuilder builderAll = new DefaultFormBuilder(layoutAll);
builderAll.setDefaultDialogBorder();
builderAll.appendSeparator(Globals.lang("General"));
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(Globals.lang("Name"));
builderAll.append(m_name);
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_explicitRadioButton, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_keywordsRadioButton, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_searchRadioButton, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.appendSeparator(Globals.lang("Hierarchical context")); // JZTODO lyrics
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_independentButton, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_intersectionButton, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_unionButton, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.appendSeparator(Globals.lang("Options"));
builderAll.nextLine();
builderAll.nextLine();
builderAll.append(m_optionsPanel, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.appendSeparator(Globals.lang("Description"));
builderAll.nextLine();
builderAll.nextLine();
JScrollPane sp = new JScrollPane(m_description,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED) {
public Dimension getPreferredSize() {
return getMaximumSize();
}
};
builderAll.append(sp, 5);
builderAll.nextLine();
builderAll.nextLine();
builderAll.appendSeparator();
builderAll.nextLine();
builderAll.nextLine();
//CellConstraints cc = new CellConstraints();
//builderAll.add(builderBP.getPanel(), cc.xyw(builderAll.getColumn(),
// builderAll.getRow(), 5, "center, fill"));
Container cp = getContentPane();
//cp.setLayout(new BoxLayout(cp, BoxLayout.Y_AXIS));
cp.add(builderAll.getPanel(), BorderLayout.CENTER);
cp.add(builderBP.getPanel(), BorderLayout.SOUTH);
pack();
setResizable(false);
updateComponents();
setLayoutForSelectedGroup();
Util.placeDialog(this, m_parent);