0

I am creating an application which is a mixed application of swt and fx .So to embed Fx controls i am using FX canvas. As per my understanding the fx dialog can be set block-able when I set the stage as its parent and set its initmodality.I had given try to Controlfx dialog also where I was setting the owner a a stackpane which is my parent after fxcanvas.But the dialog is still going to background when I click on the application screen .Any help on this will be appreciated .

ItachiUchiha
  • 36,135
  • 10
  • 122
  • 176
Rajesh Kumar Dash
  • 2,203
  • 6
  • 28
  • 57

2 Answers2

0

We can write our own dialog by extending JFACE dialog and overriding Control createDialogArea(Composite parent) to create FXCanvas and other FX Controls.

If you dont want to use JFACE dialog buttons then override createButton(Composite parent, int id, String label, boolean defaultButton) to return null.

babyinEclipse
  • 505
  • 11
  • 21
-1

You can use custom Stage window as a dialog and call Stage.initModality(Modality.APPLICATION_MODAL); method for it. Window will be blocked for its Application parent.

bluevoxel
  • 4,978
  • 11
  • 45
  • 63