示例#1
0
  public RootGrid() {
    setBackground(
        new Background(new BackgroundFill(Color.OLIVEDRAB, CornerRadii.EMPTY, Insets.EMPTY)));
    add(headerBar, 0, 0, GridPane.REMAINING, 1);

    activePane = new HomePane(this);
    functionPanes.add(activePane);
    functionPanes.add(new InstallPane(this));
    functionPanes.add(new SelectPane(this));
    functionPanes.add(new RunPane(this));

    add(activePane.getPane(), 0, 1, GridPane.REMAINING, 1);

    add(functionBar, 0, 2, GridPane.REMAINING, 1);
    functionBar.add(new ExitButton());

    defineStretching();
    activePane.setActive(true);
  }