This is JavaFX tutorial about creating a new dialog with Stage. This will be a very short example, and as you can look below, this is how our little example will look in the end. As you can see there is a button, a when user click on that button I will create and open a new dialog, simple like that.
This is just a demonstration example. In that new dialog you can create a lot of cool and useful things if you know how to work with JavaFX 2 layouts.
Check other tutorials from JavaFX Layout series by clicking on the image above.
Thanks by tutorial! I like it!
ReplyDeleteThank you :)
ReplyDeleteThanks a lot. But...you are actualy creating a new frame instead of dialog. If you call this method:
ReplyDeletestage.initModality(Modality.APPLICATION_MODAL);
it will have properties of dialog. Hvala u svakom slucaju.
Vidiš upravu si. Hvala tebi na komentarisanju. :)
ReplyDelete