[英]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.