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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Trying to embed JDialog inside Mac OS X Cocoa application

1414ca44-aae1-4218-abae-686dffe2ec58Jul 12 2015 — edited Jul 13 2015

I am trying to display a JDialog inside a native Mac application (FileMaker Pro). It works OK if I want a non-blocking dialog, I can use EventQueue.invokeLater() and that works. However, if I want to have a blocking dialog, then the application hangs when I display the dialog, because no events are being delivered.

I tried using LWCToolkit.invokeAndWait() to do what I need. This almost works, and it does draw my JDialog OK, but it does not respond to user input - it just draws the dialog and hangs. Note that I need to set javafx.embed.singleThread=true or else it does not block.

Is there any way to display an interactive JDialog within a non-Java application? I'm using Java 8u45 and Mac OS X 10.10.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2015
Added on Jul 12 2015
0 comments
702 views