¿Cómo agregar un icono al control de la pestaña en FXML?
-
10-12-2019 - |
Pregunta
Estoy usando Javafx 2.0.Quiero agregar un icono a la pestaña en FXML:
Ejemplo:
<TabPane>
<tabs>
<Tab text="abc" >
</Tab>
</tabs>
</TabPane>
Solución
Encontré una solución:
<Tab>
<graphic>
<ImageView>
<image>
<Image url="@image.png"/>
</image>
</ImageView>
</graphic>
<content>
...
</content>
</Tab>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow