To make background screen or main canvas inactive or non-clickable, add the property of modality to dialog box. Set the feature using jdialog.setmodal(true). Now, the screen will halt at the point when this line is encountered. So, will ask for input from user. Exploiting the feature of madal dialog box, previous screen can be hold on.
The blog will contain all the Technical knowledge I have to share and I welcome & would appreciate others for sharing their knowledge :0)