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!

How to Snapshot a Node not in FX-Application-Thread?

zoopraxiSep 19 2012 — edited Sep 19 2012
Hi,

is it possible to take a snapshot of a node if the method is called outside the FX-Application-Thread?

If I try something like ...
  Task task = new Task<Void>() {
             @Override 
             public Void call() {
             .
             .
             WritableImage nodeImage = wpImage_XXL.snapshot(paramsSnapShot, null);
             .
             .

         }
           
        };
i got this Exception.

java.lang.IllegalStateException: Not on FX application thread; currentThread


Any workaround, thanks in advance

Michael
This post has been answered by zoopraxi on Sep 19 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2012
Added on Sep 19 2012
2 comments
520 views