title: How to remove close button from tabs in JavaFX
body: <p>I have created some tabs in a <code>TabPane</code>. Each time I make a tab it has got a close(x) button on its right side. I don't want the tabs to be removed from the <code>TtabPane</code> so I have used:</p>
  
  <pre><code> TabPane tabPane = new TabPane();
   Tab tab = new Tab("new tab");
   tab.setContents(new Label("Please help"));
   tabPane.getTabs().add(tab);
   tab.setOnCloseRequest(e -&gt; e.consume());
  </code></pre>
  
  <p>so that it won't be removed. Is there some way not to display this close button on tab.</p>
  
  <p>Any help is appreciated.</p>