[英]Custom icons on TiwulFX DetachableTabPane
We are using TiwulFX for the dockable tabs. 我们将TiwulFX用于可停靠的选项卡。 Now we are searching how to add custom icons to a DetachableTab.
现在,我们正在搜索如何向DetachableTab添加自定义图标。 But without any success.
但是没有任何成功。 Is this even possible to add a icon to the DetachableTab?
甚至可以在DetachableTab中添加图标吗?
I have never used TiwulFX, but looking at the Javadocs, DetachableTab
is just a subclass of Tab
. 我从来没有使用TiwulFX,但看的Javadoc,
DetachableTab
只是一个子类Tab
。 So you should be able to use exactly the same method to add a graphic as you do with a regular tab: 因此,您应该能够像使用常规标签一样使用完全相同的方法添加图形:
DetachableTab tab = new DetachableTab("Tab");
Image image = new Image("path/to/image.png");
ImageView graphic = new ImageView(image);
tab.setGraphic(graphic);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.