tabpanel - JavaFX TabPane : Why is the content not refreshed after selecting different tab? -


so working tabpane in javafx first time.

after didn't work expected reduced tabpanes content 1 bit @ time until looked this:

<scrollpane prefwidth="infinity" prefheight="infinity" fittowidth="true" xmlns:fx="http://javafx.com/fxml"                             fx:controller="de.cos4u.ui.scene.control.cosplayview">     <vbox alignment="top_left" minwidth="200" prefheight="200" spacing="5">          <tabpane prefheight="infinity" minheight="infinity">             <tabs>                 <tab text="tab1">                     <content>                         <label text="test"/>                     </content>                 </tab>                 <tab text="tab2">                     <content>                         <label text="tests2"/>                     </content>                 </tab>             </tabs>         </tabpane>     </vbox> </scrollpane> 

after selecting "tab2", content area still shows label "test". refreshed scroll. it's simple tabpane, why doesn't refresh content?

edit: using 1.8u74 right now. edited fxml complete needet reduced possible. controller doesn't affect tab pane in way so. far handles simple user inputs. after removing don't need example, reduced 0.


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -

javascript - Why Selenium can't find an element that is graphically visible -