Hi,
In our application we using swing cursor when processing data using below snippet code in parent-child window.
try{
component.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
// Code for processing
// code
}catch (Exception e) {
e.printStackTrace();
}finally{
component.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
Code reset cursor back to default after logic processing without any exception.
But after closing this child frame by close event or clicking some control on this frame, when it comes into parent window its show hourgalss instead of default(pointer).
1)This type of behaviour of frame shown only when opening frame over Model Layer but work fine in case of opeing over default layer .
2) When using jdk 1.6
If we explicitly set cursor to default at closing or other event even then it shows hourglass cursor.
Please suggest.