[英]JavaFX: Is there any way to show images in a TextArea
我想在TextArea
顯示圖像,就像在HTML中使用contentEditable
的div
一樣。
我不要背景圖片。
例如:
我看到的唯一可能性就是將其添加為TextArea的Background。 例如通過帶有fx-background-image:url
CSS
嘗試將textarea和圖像添加到同一組中,例如:
Textarea text = new Textarea();
ImageView img= new ImageView ();
Group group = new Group();
group.getChildren().add(img);
group.getChildren().add(text);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.