I want to be able to show some sort of messagebox that says something like 'Querying database' while a query is being executed in my program.
Currently, I create and show a JFrame which displays my message and then straight after this I execute my query. Because the execution of the query seems to hog the cpu the JFrame that I just tried to show is not painted correctly - It just paints the outline of the frame. Once the query completes I then unload the JFrame.
I want to make sure that when the JFrame is displayed just before the query, it is fully painted and the user sees a 'Querying Database' message. Any help would be greatly appreciated.
Currently, I create and show a JFrame which displays my message and then straight after this I execute my query. Because the execution of the query seems to hog the cpu the JFrame that I just tried to show is not painted correctly - It just paints the outline of the frame. Once the query completes I then unload the JFrame.
I want to make sure that when the JFrame is displayed just before the query, it is fully painted and the user sees a 'Querying Database' message. Any help would be greatly appreciated.