• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please Wait Dialog Box

 
Matt Pratap
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




Thanks.

Matt
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you've come this far, why not post some code and let's see if we can help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!