Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
public class CyrillicAndLatin extends Application {
public void start(Stage primaryStage) {
Label helloEn = new Label("Hello");
Label helloRu = new Label("Здравствуйте");
Label goodbyeEn = new Label("Goodbye");
Label goodbyeRu = new Label("До свидания");
GridPane root = new GridPane();
root.addRow(0, helloEn, helloRu);
root.addRow(1, goodbyeEn, goodbyeRu);
root.setPadding(new Insets(16));
primaryStage.setScene(new Scene(root));;
public static void main(String[] args) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.