西楼 - 云代码空间
——
import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.stage.Stage; public class MyJavaFX extends Application{ public void start(Stage primaryStage){ Button btOK = new Button("OK"); Scene scene = new Scene(btOK,300,400); primaryStage.setTitle("MyJavaFX"); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args){ Application.launch(args); } }