Created
November 24, 2018 07:55
-
-
Save thinkphp/da24014113e54744fcbad534de98075f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.Application; | |
import javafx.geometry.Pos; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Label; | |
import javafx.stage.Stage; | |
public class HelloWorld extends Application { | |
@Override | |
public void start(Stage primaryStage) throws Exception { | |
Label label = new Label("Hello World"); | |
label.setAlignment(Pos.CENTER); | |
primaryStage.setScene(new Scene(label, 300, 250)); | |
primaryStage.setTitle("Hello World Application"); | |
primaryStage.show(); | |
} | |
public static void main(String[] args) { | |
launch(args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment