| | |
Progress messaage - wait for component to be painted...
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2005
Posts: 19
Reputation:
Solved Threads: 0
Hi!
I am writing a tool, that uses a HSQLDB database. The databases can get pretty big (the test DB is 21MB). I am using a standalone DB, so my application also acts as the DB-Server!
Here's the problem:
I want to show a message like "Loading database... Please wait!" while the DB-server restarts (on opening another DB). Unfortunately, the window containing that message doesn't paint completely (I only get a white box without content).
I also tried running threads for DB initialization and the progress window. Same result. I guess the problem is that the main thread, which paints the GUI, doesn't get any time to work, while the DB init is running.
The question:
Is there a way to wait for a component (window) to be completely painted before continuing work?
Thanks in advance!
Rotak
I am writing a tool, that uses a HSQLDB database. The databases can get pretty big (the test DB is 21MB). I am using a standalone DB, so my application also acts as the DB-Server!
Here's the problem:
I want to show a message like "Loading database... Please wait!" while the DB-server restarts (on opening another DB). Unfortunately, the window containing that message doesn't paint completely (I only get a white box without content).
I also tried running threads for DB initialization and the progress window. Same result. I guess the problem is that the main thread, which paints the GUI, doesn't get any time to work, while the DB init is running.
The question:
Is there a way to wait for a component (window) to be completely painted before continuing work?
Thanks in advance!
Rotak
•
•
Join Date: May 2005
Posts: 19
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by hooknc
Are you starting a brand new Thread that implements Runnable? Or are you starting the process from a button click? Are you able to post some example code of what you're doing?
Opening the Database is done by a dialog. I'll clean up some code to be posted later today.
Where is it going to crash today? Ah, here we are! :rolleyes:
![]() |
Similar Threads
- AdwarePunisher virus? Thing ... I dunno!! Please help!! (Viruses, Spyware and other Nasties)
- "topantispyware" virus (Viruses, Spyware and other Nasties)
- Javascript Progress Bar flickers (JavaScript / DHTML / AJAX)
- How can I have my program wait for input before continuing? (Java)
- Axis Labels (Java)
- Wait while processing Note (Java)
Other Threads in the Java Forum
- Previous Thread: Done but with errors
- Next Thread: urgent help
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application arc arguments array arrays automation binary bluetooth c++ chat class classes client code codesnippet component csv database doctype draw ebook eclipse error event exception fractal freeze game givemetehcodez graphics gui html ide image input integer intellij iphone j2me java java.xls javaprojects jmf jni jpanel julia linux list loop loops mac map method methods mobile netbeans newbie number online oracle page parameter plazmic print problem program programming project recursion reporting rotatetext scanner screen sell server set size sms socket sort sourcelabs sql string superclass swing system template test testautomation threads time title tree tutorial-sample windows working





