I'm having a problem with my application, in that, I don't want it to start
running until all of the awt components are fully displayed. I've searched &
searched through the Java2 spec and can't figure out how to check if a
component is fully displayed on the screen. I've tried the validate()
method, but it doesn't seem to do exactly what I need. I've got multiple
threads running and a lot of things going on in my window. My program starts
executing before the window is fully drawn, eventually the window catches
up, but it looks really bad and unprofessional until it does catch up.
Also, in my threads, controlling them and keeping them working in the
correct order has been difficult at best. I've inserted a lot of
"thisThread.yield()" calls, but unless I have several in a row, I still have
problems. I've tried the sleep(mills) method, but this seems to mix up other
threads (I've got a lot of things inter-related with unknown timing, so it's
hard to define what (mills) should be). In the API I've noticed an
interrupt() method, but the resume() method is deprecated. Is the intent to
re-start an interrupted thread with the run() method? Is this the best
approach?
(BTW.... The program I'm working on will eventually have Java3D incorporated
in it once I get the core program working)
Don Casteel
Manufacturing Engineer
TEXTRON Automotive Company -- Athens Operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Voice: (423)744-1109
Fax: (423)744-1112
Pager: (423)744-1129 -- 109
Internet: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/