Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

GUI cross thread problem

894645Nov 13 2011 — edited Dec 7 2011
Hello!

I Guess I have problem with calling function from one thread to another thread.
This is my scenario:

I have VBox that is on Stackpane. VBox has the eventhandler that catches dragEvent. When occurs dragEvent in eventhandler I want add new nodes to StackPane but I get error. I guess it is because cross thread invoke method problem, because StackPane is in one thread and eventhandler is in another or am I wrong?
summary:
When dragEvent occurs I want to call function that adds new node to Stackpane.

Is there any invoke function or something similar for cross threading communication?
Am I on rigt way or is problem in quite another?

Pleas help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2012
Added on Nov 13 2011
9 comments
776 views