加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

用Java预览HTML

发布时间:2020-12-15 08:29:05 所属栏目:Java 来源:网络整理
导读:你知道哪些库/方法可以在Swing中做一些基本的 HTML表示?你能评论一下你的经历吗? 解决方法 许多Swing控件(如JLabel)可以呈现基本的HTML内容. JEditorPane可用于显示HTML页面.但是,这些控制仅限于 HTML 3.2支持. 为了获得更丰富的体验,我会使用JDesktop Int
你知道哪些库/方法可以在Swing中做一些基本的 HTML表示?你能评论一下你的经历吗?

解决方法

许多Swing控件(如JLabel)可以呈现基本的HTML内容. JEditorPane可用于显示HTML页面.但是,这些控制仅限于 HTML 3.2支持.

为了获得更丰富的体验,我会使用JDesktop Integration Components.

JDIC provides Java applications with
access to functionalities and
facilities provided by the native
desktop. It consists of a collection
of Java packages and tools. JDIC
supports a variety of features such as
embedding the native browser,launching the desktop applications,creating tray icons on the desktop,registering file type associations,creating JNLP installer packages,etc.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读