*
* @return options panel.
*/
private Component buildOptionsPanel()
{
BBFormBuilder builder = new BBFormBuilder("p");
for (int i = 0; i < targetBlogs.length; i++)
{
BBFormBuilder b = new BBFormBuilder("min(p;100dlu), 2dlu, min(p;100dlu)");
b.append(chTargetBlog[i], pcCategories[i]);
builder.append(b.getPanel());
}
JPanel pnlBlogs = builder.getPanel();
builder = new BBFormBuilder("p");
builder.append(chDraft);
builder.append(chAllowComments);
builder.append(chAllowTrackbacks);
JPanel pnlOptions = builder.getPanel();
builder = new BBFormBuilder(new FormLayout("p, 4dlu:grow, p", "top:p"));
builder.append(pnlBlogs, pnlOptions);
return builder.getPanel();
}