Java在后台打开html [英] Java open html in background

查看:348
本文介绍了Java在后台打开html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的程序中打开多个HTML。我通过desktop.browse()来做到这一点,但是打开每个HTML后它会进入我的浏览器。这是一种在后台打开HTML的方法吗?例如,我运行我的程序,它打开HTML,我可以同时浏览网页。

I want to open from my program multiple HTMLs. I do this by desktop.browse(), but it goes to my browser after opening every HTML. Is this a method to open HTML in background? For example I run my program it opening HTMLs and I can surfing the web at the same time.

推荐答案

在打开html之后将其放在前面:

You can bring your application frame to front after opening html:

    mainFrame.toFront();
    mainFrame.repaint();

这篇关于Java在后台打开html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆