Dear Developers,
we are having a serious problem , in using the swings . We are using the JDialog a container for the screens in our application , application is using DB2 in the backend. So the problem is every application has several FORM screen where user has to add,Edit and delete the data, so there are many heavy Manipulation and Database operations involved on the startup of every screen ( this is our requirement , cant get rid of it) .
So where ever user clicks the " ADD RECORD " button very fast (like double clicking) either , the next screen (which is involved with several DB operations on startup) appears in TWO or more instances (how many times the clicking was done ) despite the JDialog's MODAL property is set.
We have tried every thing to stop this, bus we are failed to do so, Except by stoping is manually by applying some flags in the code for every form (u can imagine we have 2230 classes and 80% of them are GUIs)
We tried even :
Starting the GUI in a separate worker
thread and using
SwingUtilities.startAnd Wait() method.
Also many ways to handle it from the ActionListeners, and from these type of all possibilities
So please help us out in this matter and let us know if any one have any solution about the problem.
We will be thankful to the person /Team /Organization.
The Saint