Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Threads waiting for each other

807580Nov 24 2009 — edited Nov 24 2009
Hey,
I am developing a multi-threaded program. The thing is that I have a GUIThread and a XMLsettingsReaderThread (well among other threads).... Now it is absolutely necessary that the GUIThread is executed and completed to a certain level before the XMLsettingsReaderThread starts...Now how do I do this? The problem is that I want the GUIthread create a Frame first before XMLsettingsReaderThread starts cause it uses a getter on the Frame(created in GUIThread) and if XMLsettingsReaderThread is first then there is no frame yet so I get NullPointerException.

thank you veeery much :)

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 22 2009
Added on Nov 24 2009
1 comment
54 views