This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a database. I want to load this data onto my JTable. The problem is it takes several seconds. in this time period I need to show loading message using a JProgressBar.How can i do this? I did try with google. But I didn't find any answer. Please help me.
Use SwingWorker. In short, you start the progress bar (in indeterminate mode, as you don't know how long it will take) , then execute the SwingWorker. In it's done() method (which you override) you stop the progress bar again.