Thanks for the reply.I shall explain you why we need such an requirement.
In Windows XP with JRE1.3.1_06(no other JRE could be used) ,the Print Dialog is Modal.So we need to click OK or Cancel in Print Dialog to get back focus to the main Application.
But our problem is, sometimes when the Print Dialog is triggerd,the Application becomes unusable but the Print Dialog does not come up (view is missing). Even in ALT TAB we cannot find the Print Dialog.In this situation as OK or Cancel could not be triggered. So by setting a timer, if we do not get the print dialog response within a certain amount of time we need to close the dialog from Application so that the Main Application gains focus.
Expecting you reply
Anu