Align button horizontally in top of frame and table bottom vertically

47 Views Asked by At

I get in trouble with the fact of after clicking on a button : I would like my table is set at bottom of my button but it's not that

I've managed to get it without after clicking a button but without, I've tested many things and nothing.

Here is the code :

contents = new BoxPanel(Orientation.Horizontal) {
      contents += Button("Top 10 most commun runways latitude") {
        val headers = Array.tabulate(10) {"Col-" + _}.toSeq
        val rowData = Array.tabulate[Any](10, 10) {"" + _ + ":" + _}
        contents += new ScrollPane(new Table(rowData, headers))
      }
      contents += Button("10 highest and lowest number of countries") {
        }

      contents += Button("Type of runways per country") {}
  }

What I get What I get

What I would like What I would like

0

There are 0 best solutions below