Created
September 24, 2020 18:35
-
-
Save enebo/c98266c13db9720e42e408713aa674a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
class HelloFX < Java::javafx::application::Application | |
def start(stage) | |
l = Java::javafx.scene.control.Label.new "Hello, JavaFX" | |
scene = Java::javafx.scene.Scene.new(Java::javafx.scene.layout.StackPane.new(l), 640, 480); | |
stage.setScene scene | |
stage.show | |
end | |
end | |
HelloFx.new.launch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment