Does anyone know where to get a good implementation of a "please wait" dialog box? (Swing - Java application) Preferably with a JProgrssBar inside so that I can inform the user on the progress. This seems like such a common thing, but rather tricky.
I have already implemented one (using a separate runnable thread for the dialog) and a SwingWorker for my processing, but it is still rough. It sometimes throws exceptions because my main windows has JTables, and their data changes during processing. So when my wait dialog is hidden, it tries to paint rows on a JTable that does not have such rows anymore, and then an exception is thrown.