I had created a window based desktop application using
java Swing. I used jDesktopPane for it. my problem is that when clicking a button in a parent window, a child window is opened, it asks for input, i want before the input is not given in the child window,one cannot close the parent window. just like in MS-word, when we open a font dialog box, until unless we are not done with the dialog box, we cannot close the
word window.we have to first close that dialog box and then only we can close the main window of MS-word. Please Help me with some relevant examples and code.