<|start_filename|>IDE/NetBeans/Modular/Java/HelloFX/src/hellofx/classes/module-info.java<|end_filename|>
module hellofx {
    requires javafx.controls;
    requires javafx.fxml;
    
    opens org.openjfx to javafx.fxml;
    exports org.openjfx;
}


<|start_filename|>IDE/Eclipse/Non-Modular/Gradle/hellofx/src/main/java/org/openjfx/FXMLController.java<|end_filename|>
package org.openjfx;

import javafx.fxml.FXML;
import javafx.scene.control.Label;

public class FXMLController {

    @FXML
    private Label label;

    public void initialize() {
        label.setText("Hello, JavaFX");
    }
}


<|start_filename|>IDE/NetBeans/Non-Modular/Gradle/hellofx/src/main/java/org/openjfx/FXMLController.java<|end_filename|>
package org.openjfx;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;

public class FXMLController implements Initializable {
    
    @FXML
    private Label label;
    
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        String javaVersion = System.getProperty("java.version");
        String javafxVersion = System.getProperty("javafx.version");
        label.setText("Hello, JavaFX " + javafxVersion + "\nRunning on Java " + javaVersion + ".");
    }    
}


<|start_filename|>IDE/NetBeans/Non-Modular/Gradle/hellofx/src/main/resources/org/openjfx/styles.css<|end_filename|>
.label {
    -fx-text-fill: blue;
}
