JavaFX TabPane : Why is the content not refreshed after selecting different tab?
<p>So I am currently working with tabpane in JavaFx for the first time.</p>

<p>After it didn't work as expected I reduced the tabpanes content one bit at a time until it looked like this:</p>

<pre><code>&lt;ScrollPane prefWidth="Infinity" prefHeight="Infinity" fitToWidth="true" xmlns:fx="http://javafx.com/fxml"
                            fx:controller="de.Cos4U.ui.scene.control.CosplayView"&gt;
    &lt;VBox alignment="top_left" minWidth="200" prefHeight="200" spacing="5"&gt;

        &lt;TabPane prefHeight="Infinity" minHeight="Infinity"&gt;
            &lt;tabs&gt;
                &lt;Tab text="Tab1"&gt;
                    &lt;content&gt;
                        &lt;Label text="test"/&gt;
                    &lt;/content&gt;
                &lt;/Tab&gt;
                &lt;Tab text="Tab2"&gt;
                    &lt;content&gt;
                        &lt;Label text="tests2"/&gt;
                    &lt;/content&gt;
                &lt;/Tab&gt;
            &lt;/tabs&gt;
        &lt;/TabPane&gt;
    &lt;/VBox&gt;
&lt;/ScrollPane&gt;
</code></pre>

<p>After selecting "Tab2", the content area still shows the label "test". It is refreshed as soon as you scroll. It's a this simple tabpane, so why doesn't it refresh its content?</p>

<p>Edit: I am using 1.8u74 right now. I edited the fxml so now its as complete as needet but as reduced as possible.
The controller doesn't affect the tab pane in any way so. So far it handles simple user inputs. After removing anything i don't need for this example, it is reduced to 0.</p>