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!

JavaFx and JNI

966041Oct 3 2012
Hi,
I am writing a program to display an image in JavaFx .So 1st the javaFx gives the image path to simple java application that reads the pixels of the image in array and hands over to a native C program which processes and returns back the out put pixel to the java which in turn returns to JavaFx application. Here i am converting the java.awt.Image to javafx.scene.Image. And all the process happens by clicking a button in javafx. But while the javafx( program) trying to display the image 1st it appears like arbitrary pixels painted on a surface not the image(out put image) .When i click the button one or two more time the image appears.
So can u plz tell me the solution
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2012
Added on Oct 3 2012
0 comments
456 views