如何在 webstart 应用程序中嵌入 html/css/js 视图 [英] How could I embed a html/css/js view in a webstart application

查看:28
本文介绍了如何在 webstart 应用程序中嵌入 html/css/js 视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 webstart 项目中使用 html/css/js 视图,而无需请求所有权限.

I would like to use a html/css/js view in my webstart project without requesting all permissions.

我发现我可以使用 java HTTPServer 来处理请求,但我需要一种方法来避免使用真正的套接字,这样 HTTPServer 实例化就不会请求某些权限.

I figured out that I could use the java HTTPServer to process the requests but I need a way to avoid using real sockets, so that the HTTPServer instantiation doesn't ask for some permission.

你知道有哪些项目可以实现这一目标吗?如果没有,我应该怎么做才能让 HTTPServer 完全在本地工作(不触及边界......)?

Do you know any projects that achieve that ? and if not, what should I do to get an HTTPServer completely working locally (without hitting boundaries...) ?

也许一个 HTTPServer 太多了,我也许只需要一个 HttpHandler..

edit: maybe an HTTPServer is too much, I maybe only need a HttpHandler..

推荐答案

如果您可以接受 HTML 3.2,JEditorPane 可以渲染,如图这里.

If you can live with HTML 3.2, JEditorPane can render it, as shown here.

这篇关于如何在 webstart 应用程序中嵌入 html/css/js 视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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