hello!
i written a program..it has for loop and calling thread.sleep for every
increment of for loop..
at the same time i initially called Swing Jtable which shows status of every for loop increment...
when i executing main program swing table appearing but no content filled for every execution ...
but it shows all content after for loop executed fully...
public static void method() throws Exception {
StatusTable stab=new StatusTable();//swing component another class
for( row = 1;row <= rows;) {
if(condition)
{
thread.sleep(500);
/////////////////
rows going to add in StatusTable
///////////////////
notify() ////////exeption shown as java.lang.IllegalMonitorStateException
//////////////////
}
}
catch(Exception ioe) {
System.out.println("Error: " + ioe);
}
}