title: JavaFX: Issue with setting same Node to multiple tabs
body: <p>I am trying to set a particular node to more than one tabs on a tab pane. The problem is that only the last tab has the node when the application is launched but the rest of the tabs are shown empty.</p>
  
  <p>I am attaching the code and a few screen shots to explain the problem:</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.geometry.Pos;
  import javafx.geometry.Side;
  import javafx.scene.Group;
  import javafx.scene.Scene;
  import javafx.scene.control.Label;
  import javafx.scene.control.Tab;
  import javafx.scene.control.TabPane;
  import javafx.scene.layout.BorderPane;
  import javafx.scene.layout.HBox;
  import javafx.scene.paint.Color;
  import javafx.scene.text.Text;
  import javafx.stage.Stage;
  
  public class TabExample extends Application
  {
  
  public static void main(String[] args)
  {
      Application.launch(args);
  }
  
  @Override
  public void start(Stage primaryStage)
  {
      primaryStage.setTitle("Tabs");
      Group root = new Group();
      Scene scene = new Scene(root, 400, 250, Color.WHITE);
  
      TabPane tabPane = new TabPane();
  
      BorderPane borderPane = new BorderPane();
  
      Text myText = new Text("Hello");
  
      for (int i = 0; i &lt; 5; i++)
      {
          Tab tab = new Tab();
          tab.setText("Tab"
              + i);
          HBox hbox = new HBox();
          hbox.getChildren().add(new Label("Tab"
              + i));
          hbox.setAlignment(Pos.CENTER);
          tab.setContent(myText);
          tab.setClosable(false);
          tabPane.getTabs().add(tab);
      }
      tabPane.setSide(Side.BOTTOM);
  
      // bind to take available space
      borderPane.prefHeightProperty().bind(scene.heightProperty());
      borderPane.prefWidthProperty().bind(scene.widthProperty());
  
      borderPane.setCenter(tabPane);
      root.getChildren().add(borderPane);
      primaryStage.setScene(scene);
      primaryStage.show();
  }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Mmp2n.png" alt="enter image description here"></p>
  
  <p>Please let me know if there is anything wrong with what I am doing or is it a known bug?</p>