A
A
alexpusher2016-04-12 18:15:48
Java
alexpusher, 2016-04-12 18:15:48

How to create a modal window in JavaFX, SceneBuilder?

Good afternoon.
I need help with the following question:
How do I create a modal window so that it appears before the main interface of the program loads, I could enter initial data in this window, and the main interface received this input.
Tell me what to read on this topic, or look, or Google is correct (I didn’t manage to google it myself, what garbage it displays in the search).
Thank you very much in advance!!!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Goncharov, 2016-04-12
@andre_goncharov

You can peep in the sources of the "Ensemble" example from the Oracle website.

D
Dmitry Alexandrov, 2016-04-15
@jamakasi666

I haven’t looked at what’s in FX for a long time, but there were no modal windows before.
The options are:
1) Replace the stage in the scene.
2) Call the modal swing window, and then launch the FX window.
3) It is possible that modal windows appeared in FX.
4) Create an FX window, kill it and create another one. Here I think everything is clear.

A
Alex, 2016-04-26
@libalex

JavaFX has modal windows.

modalStage.initModality(Modality.WINDOW_MODAL);
modalStage.initOwner(ownerStage);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question