title: JavaFX control in TabPane doesn't receive input events
body: <p>I have a problem with JavaFX when trying to add a custom control onto a BorderPane in my app. As long as I just set my control (Editor) as the content (using setCenter) it works just fine and receives input events (keyboard and mouse). However, when I try to wrap it into a TabPane and Tab control the control doesn't receive any events any more and can't seem to be focussed. I know the control is still there in the Scene, because you can still see it. You just can't interact with it.</p>
  
  <p>The following code is what I'm working with right now:</p>
  
  <pre><code>class EditorScene extends BorderPane {
  
    def setup() {
      // Default editor
      val tab = new javafx.scene.control.Tab("New File")
      val editor = new Editor(this)
      tab.setContent(editor)
  
      val tabs = new TabPane()
      tabs.getTabs().add(tab)
  
      setCenter(tabs)
      //setCenter(editor)
    }
  
    setup()
  }
  </code></pre>
  
  <p>In the last lines of setup() when I use the second line (setCenter(editor)) it works as expected, receives events etc. When I use the line above (setCenter(tabs)) it doesn't receive any events apparently; at least the event handlers are not called.</p>
  
  <p>I'm probably overlooking something very obvious, but I can't seem to find the mistake. Any ideas? I'd be grateful for any hints.</p>