Getting java gui to open a webpage in web browser

后端 未结 4 1554
野的像风
野的像风 2020-11-28 10:20

I am trying to get a java gui to open a web page. So the gui runs some code that does things and then produces a html file. I then want this file to open in a web browser (p

4条回答
  •  情歌与酒
    2020-11-28 10:59

    I've used BrowserLauncher2 with success. It'll invoke the default browser on all platforms tested. I use this for demoing software via JNLP. The software downloads, runs and drives the user's browser to information pages/feedback etc.

    JDK 1.4 and above, I believe.

提交回复
热议问题