How to check whether a default browser is opened in the operating system (Java)?
<p>I am newbie here. During my work, I faced an interesting problem. I need to:</p>

<p>
<ul>
<li>check whether a default html browser is opened;
<li>check whether the browser is minimized/maximized (simply, a window's state);
<li>get an url address typed in the browser.
</ul>
</p>

<p><p>If any of these conditions is not met, I have to open the browser in a maximized view with a desired url address.</p> <p>I primarily wanted to do all this in Java, but it came to my mind that I should employ many techniques/technologies and combine them appropriately to complete the functionality. But, which ones? That's the problem. </p><p>I just recalled Windows API, but I'm not sure if it is of any help... Some users on another forum suggested that I should consider JNI (no experience at all)... I only know how to open a default browser (e.g. with use of the 'browse(URI uri)' method of the 'java.awt.Desktop' class) - that's too little to be proud of. </p>Please give me some hints, maybe links to reasonable discussions, I would greatly appreciate any suggestions how to approach the problem. </p>
