Open Browser window from Java program

后端 未结 5 2002
小蘑菇
小蘑菇 2021-01-12 21:44

Question

I have an application written in Java. It is designed to run on a Linux box standalone. I am trying to spawn a new firefox windo

5条回答
  •  时光说笑
    2021-01-12 22:20

    Use BrowserLauncher.

    Invoking it is very easy, just go

    new BrowserLauncher().openURLinBrowser("http://www.google.com");
    

提交回复
热议问题