Results 1 to 2 of 2

Thread: Panel is not getting added to the main panel

  1. #1

    Default Panel is not getting added to the main panel

    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

  2. #2

    Smile Panel is not getting added to the main panel : Solved the issue

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •