PDA

View Full Version : Panel is not getting added to the main panel



sujata
24 Jul 2009, 6:19 AM
Hi All,

I am facing following issue in the GXT: To mainPanel I am adding two panels i.e. bottomPanel1 and bottomPanel but only bottomPanel1 is visible on the screen and not the second one. And if I reverse the order then only bottomPanel will be displayed on the screen. Can you please help me for the same?


ContentPanel mainPanel = new ContentPanelBuilder().layout(new FlowLayout()).headerVisible(false).panel();

LayoutContainer bottomPanel = new LayoutContainer(new RowLayout());
complete = new CheckBoxBuilder().name("complete").boxLabel(msg.complete()).checkBox();
bottomPanel.add(complete, new RowDataBuilder().margins(new Margins(0, 0, 0, FORM_MARGIN)).layoutData());



ButtonBar buttonBar = new ButtonBar();
buttonBar.setButtonAlign(HorizontalAlignment.RIGHT);
LayoutContainer bottomPanel1 = new LayoutContainer(new RowLayout());
expandAll = new Button("+");
expandAll.setToolTip("Expand All");
buttonBar.add(expandAll);

collapseAll = new Button("-");
collapseAll.setToolTip("Collapse All");
buttonBar.add(collapseAll);
bottomPanel1.add(buttonBar, new RowDataBuilder().margins(new Margins(0, 0, 0, FORM_MARGIN)).layoutData());
mainPanel.add(bottomPanel1, new RowData());
mainPanel.add(bottomPanel,new RowData());


Thanks in advance,
Sujata

sujata
25 Jul 2009, 3:27 AM
This is because the panel size was less and because of that I was not able to add more widgets to the panel.

Thanks,
Sujata