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

Поділитися
Вставка
  • Опубліковано 21 сер 2024
  • 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

КОМЕНТАРІ • 8

  • @mikeCavalle
    @mikeCavalle 3 роки тому

    Great, quick, and to the point with a title that says exactly what is described. thanks

  •  4 роки тому

    Excellent video. Keep it up! Would you like to be UA-cam friends? :]

  • @omerhefnawy3753
    @omerhefnawy3753 7 місяців тому

    Not working for me

  • @isaiahokara6362
    @isaiahokara6362 3 роки тому

    why is working from
    ur side

  • @mr.RAND5584
    @mr.RAND5584 4 роки тому

    Sa umpisa nagana. Java lang runtime error.

  • @ridatazi938
    @ridatazi938 4 роки тому

    not working pal! I literally typed the same code as u did!

  • @bartholomews9470
    @bartholomews9470 4 роки тому

    Sorry mate, not enough explaining for it to be called a tutorial, more like a 'copy my code' video.