JavaSE GUI 编程的一个例子
import javafx.ui.Frame;
import javafx.ui.Label;
var helloLabel = new Label();
helloLabel.text = "Hello World!";
var helloFrame = new Frame();
helloFrame.title = "Hello World!";
helloFrame.content = helloLabel;
helloFrame.pack();
helloFrame.centerOnScreen = true;
helloFrame.visible = true;
import javafx.ui.Label;
var helloLabel = new Label();
helloLabel.text = "Hello World!";
var helloFrame = new Frame();
helloFrame.title = "Hello World!";
helloFrame.content = helloLabel;
helloFrame.pack();
helloFrame.centerOnScreen = true;
helloFrame.visible = true;