How could I embed a html/css/js view in a webstart

2019-09-19 18:54发布

问题:

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

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.

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...) ?

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

回答1:

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