TitledPane
次のようなヘッダーにアイコン画像を表示するという問題を解決しました。
<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>
これは次のようになります。
ご覧のとおり、折りたたむための矢印とこのアイコンが直接並んで表示されると、見栄えがよくありません。
タイトルバーの右側にアイコンを表示するにはどうすればよいですか?