Comment ajouter une icône à la commande de tabulation dans FXML?
-
10-12-2019 - |
Question
J'utilise JavaFX 2.0.Je veux ajouter une icône à l'onglet dans FXML:
Exemple:
<TabPane>
<tabs>
<Tab text="abc" >
</Tab>
</tabs>
</TabPane>
La solution
J'ai trouvé une solution:
<Tab>
<graphic>
<ImageView>
<image>
<Image url="@image.png"/>
</image>
</ImageView>
</graphic>
<content>
...
</content>
</Tab>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow