import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class App extends Application {
	private static String HTML = """
			<html>
			<head>
			<style>
			 body {font-size: 20pt;}
			</style>
			</head>
			<body>
				<p>
					Very short text.
					Another short text.
					Yet another short text.
				</p>
			</body>
			</html>
			""";

	public static void main(String[] args) {
		launch(args);
	}

	@Override
	public void start(Stage arg0) throws Exception {
		WebView webView = new WebView();
		WebEngine webEngine = webView.getEngine();
		webEngine.loadContent(HTML);

		VBox vBox = new VBox();
		vBox.getChildren().add(webView);
		Scene scene = new Scene(vBox);
		Stage stage = new Stage();
		stage.setMaxHeight(150);
		stage.setScene(scene);
		stage.show();
	}
}
