Direct Known Subclasses:
FlowPane, HBox, VBox

public class Pane extends Region
Pane does not modify the layout of its children in any way. However, it is exposing the children list, so child nodes can be added and removed freely.

Layout panes should extend this class.

For more complex layouts, use different panes, e.g. VBox, HBox, FlowPane, etc.

  • Constructor Details

    • Pane

      public Pane()
      Constructs a new pane empty.
    • Pane

      public Pane(Node... children)
      Constructs a new pane with the given children.
      Parameters:
      children - the children of the pane
  • Method Details

    • getChildren

      public ObservableList<Node> getChildren()
      Description copied from class: Parent
      Returns the list of children of this parent.
      Overrides:
      getChildren in class Parent
      Returns:
      the list of children