1
我已经解决了这个问题带来的图标图像为TitledPane
这样的标题:如何在TitledPane标题中设置ImageView的位置?
<TitledPane fx:id="x2" text="Strukturen">
<graphic>
<ImageView >
<image>
<Image url="@/de/myres/icons/arrow-out.png" />
</image>
</ImageView>
</graphic>
<content>
<AnchorPane id="Content" minHeight="0.0" minWidth="0.0"
prefHeight="180.0" prefWidth="200.0" />
</content>
</TitledPane>
这看起来如下:
正如你所看到的,当折叠箭头和此图标直接显示在彼此旁边时,看起来不是很好。
我如何能实现获得的图标,标题栏的右侧?