Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
GDK_SCALE=2 verwendet, um manuell die Environment Variable zu setzen.import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class MainWindow extends Application
{
public static void main(
final String... args)
{
launch(args);
}
@Override
public void start(
final Stage primaryStage)
{
final VBox root = new VBox(10);
root.getChildren().addAll(new Button("Button"), new TextField(), new Label("Label"));
final Scene scene = new Scene(root, 600, 400);
primaryStage.setScene(scene);
primaryStage.show();
}
}
try {
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
} catch( Exception e ) { e.printStackTrace(); }

Damit konntest du problemlos eine Swing-GUI starten?openjdk-14-jdk-headless
Ist halt kopflos 😎Damit konntest du problemlos eine Swing-GUI starten?