简体   繁体   中英

Can a JFrame show a Process?

Question, can you create a process(in this case opening google chrome) and display the result(in this case the browser) inside a JFrame? I don't want a separate window to pop up.

Actually it can. JxBrowser library is what you need. It gives you a possibility to embed a rich web browser component into your Swing-based Java desktop applications. So web documents, inside your application will look exactly like in a web browser that they are designed. Below is the link of few examples involving jxBrowser and download page: https://www.teamdev.com/downloads/jxbrowser/docs/Quick-Start.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM