Java CountDownLatch used to wait for JFrame to dispose
- by Brian
I have referenced this previous question as well as other sources, but cannot get CountDownLatch to work correctly.
Background: mainFrame creates new Frame called dataEntryFrame. When dataEntryFrame "Submit" button is clicked, record added to database and dataEntryFrame disposed. At this point, mainFrame should clear and reload a jList that…