预览Java中的HTML [英] Previewing HTML in Java

查看:140
本文介绍了预览Java中的HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道哪些库/方法可以在Swing中做一些基本的HTML表示?你能评论一下自己的经历吗?

What libraries/methods do you know of that can do some basic HTML representation in Swing? Can you comment on your experience?

推荐答案

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

Many of the Swing controls (like JLabel) can render basic HTML content. JEditorPane can be used to display HTML pages. However, these controls are limited to HTML 3.2 support.

要获得更丰富的体验,我将使用 JDesktop集成组件.

For a richer experience, I would use the JDesktop Integration Components.

JDIC为Java应用程序提供 使用功能和 本地人提供的设施 桌面.它包含一个集合 Java软件包和工具.迪迪克 支持多种功能,例如 嵌入本机浏览器, 启动桌面应用程序, 在桌面上创建任务栏图标, 注册文件类型关联, 创建JNLP安装程序包等.

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.

这篇关于预览Java中的HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆