支持Javascript和CSS的JEditorPane [英] JEditorPane with Javascript and CSS support
问题描述
我正在使用 JEditorPane
处理Swing,但它不支持Javascript或某些高级标记,如< object>
等,不支持颜色,字体样式大小等。
I am working on Swing using JEditorPane
but it's not supporting the Javascript or some advanced tag like <object>
etc. and not supporting the color, font style size etc.
是否有解决方案,以便编辑器窗格可以显示HTML文件,因为它以正常HTML格式显示浏览器?
Is there any solution so that editor pane can display the HTML file as it is being displayed in normal HTML browser?
推荐答案
-
当前
Java6 / 7
仅支持(upto)Html 3.2
,减少对css
的支持,current
Java6/7
supporting only (upto)Html 3.2
with reduced support forcss
,用于
Html5
和相当完整css支持
使用JavaFx组件
,有自定义Java库支持Html4 / 5,css和js,但我会建议使用
JavaFX
而不是
there are custom Java libraries with (full???) support of Html4/5, css and js but I'd be suggest to use
JavaFX
instead这篇关于支持Javascript和CSS的JEditorPane的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!