How to detect a webpage HAS been loaded in java
<p>I am using the following code to display a webpage:</p>

<pre><code>      String downloadURL="http://in.finance.yahoo.com/echarts?s=%5ENSEI#symbol=%5Ensei;range=1d;compare=;indicator=volume;charttype=area;crosshair=on;ohlcvalues=0;logscale=off;source=;";
        java.awt.Desktop myNewBrowserDesktop = java.awt.Desktop.getDesktop();
        java.net.URI myNewLocation = new java.net.URI(downloadURL);
        myNewBrowserDesktop.browse(myNewLocation);
</code></pre>

<p>Now , i want to detect when the page has been fully loaded. ( The wait dialog is to displayed till then ). How to do i go about doing that? 
Thanks in Advance</p>
