Forum Stats

  • 3,874,905 Users
  • 2,266,789 Discussions
  • 7,912,003 Comments

Discussions

Trying to embed JDialog inside Mac OS X Cocoa application

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.

Tagged:
This discussion has been closed.