How to render basic HTML markup inside a JPanel in Java Swing?

后端 未结 4 1268
日久生厌
日久生厌 2021-01-01 02:09

I want to do something really simple like this:

JPanel htmlPanel = new HtmlPanel(\"

hello world

4条回答
  •  情歌与酒
    2021-01-01 02:36

    There was JWebPane, a Java component based on WebKit, but that project seems to have died a long time ago and/or has just gone quiet. Some people are still hoping it will be released, The other one I know of is WebKit for SWT, but it appears to be for Win32 only. :(

提交回复
热议问题