“Argumen JavaFX VM” Kode Jawaban

Argumen JavaFX VM

--module-path="Add\path\to\JavaFX\lib" --add-modules=javafx.controls,javafx.fxml
DEATHVADER

Argumen JavaFX VM


    package javafx11;
    
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    
    public class HelloFX extends Application {
    
        @Override
        public void start(Stage stage) {
            String version = System.getProperty("java.version");
            Label l = new Label ("Hello, JavaFX 11, running on "+version);
            Scene scene = new Scene (new StackPane(l), 300, 200);
            stage.setScene(scene);
            stage.show();
        }
    
        public static void main(String[] args) {
            launch();
        }
    
    }

Old-fashioned Osprey

Jawaban yang mirip dengan “Argumen JavaFX VM”

Pertanyaan yang mirip dengan “Argumen JavaFX VM”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya