Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.datafx.tutorial;
 import  javafx.fxml.FXML;
 import  javafx.scene.control.Button;
This class defines the controller for the second view of this example. The

annotation defines that the view2.fxml file contains the definition of the UI of this view. As described in the Tutorial2Main class this example will show how you can navigate between several views in flow. In this example there are only two views that are defined by its controller classes: View1Controller and View2Controller.

How the navigation is working can be found in the View1Controller class. The only different between this class and the View1Controller class is that in this case the @LinkAction annotation defines a navigation to the view that is defined by the View1Controller class.

public class View2Controller {
    private Button actionButton;
New to GrepCode? Check out our FAQ X