bobrivers2003
Technical User
I have a simple JFrame that includes a button that when pressed calls a method that opens Internet Explorer with a given url. It is possible to check if IE is already open and if so stops a new browser window from opening?
void openIE()
{
try {
Runtime rt = Runtime.getRuntime();
rt.exec("C:\\Program Files\\Internet
Explorer\\IEXPLORE.EXE
} catch (Exception z){
System.out.println(z);
}
}
Thanks and Regards
void openIE()
{
try {
Runtime rt = Runtime.getRuntime();
rt.exec("C:\\Program Files\\Internet
Explorer\\IEXPLORE.EXE
} catch (Exception z){
System.out.println(z);
}
}
Thanks and Regards