Город МОСКОВСКИЙ
00:03:15

JavaFX : Loading New FXML in the Same Scene / WIndow - New Tutorial

Аватар
Java Guru: станьте настоящим мастером
Просмотры:
28
Дата загрузки:
05.12.2023 00:53
Длительность:
00:03:15
Категория:
Лайфстайл

Описание

This video shows how to load new FXML layout in the same scene. This process is very simple. All that you have to do is to load the FXML layout to a variable (a container variable. In this case AnchorPane) using FXMLLoader calss.
FXMLLoader.load(getClass().getResource("fxml_file_name.fxml"));

Then set the content of the current root pane to this variable.

Loading New FXML in the Same Scene / WIndow - New Tutorial

Рекомендуемые видео