Back to Browse

JavaFX Tutorial 36 - Opening a New Stage (Window)

5.8K views
May 8, 2020
14:52

In this tutorial, I will show you how to create a new window (stage in JavaFX). There are three modalities that you can apply to the Stage class through the stage.initModality(Modality.NONE) method as follows. When you open a new window with this modality, Modality.NONE // you can interact with the parent window (primary stage), or close it without affecting the new window. This is the default modality. Modality.WINDOW_MODAL // you can not interact with the parent window until this new window is closed. Modality.APPLICATION_MODAL // you can not interact with any other windows until this new window is closed. #Window #JavaFX8

Download

0 formats

No download links available.

JavaFX Tutorial 36 - Opening a New Stage (Window) | NatokHD