Libraryless. Click here for Pure Java version (10032L/71K).
!7 import javafx.application.Platform; import javafx.embed.swing.JFXPanel; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.paint.Color; import javafx.scene.text.Font; import javafx.scene.text.Text; module JavaFXTest > DynModule { visualize { final new JFXPanel fxPanel; jfxLater(r { fxPanel.setScene(createScene()); }); ret fxPanel; } } // JavaFX World static Scene createScene() { new Group root; Scene scene = new Scene(root, Color.ALICEBLUE); new Text text; text.setX(40); text.setY(100); text.setFont(new Font(25)); text.setText("Welcome JavaFX!"); root.getChildren().add(text); ret scene; }
Began life as a copy of #1003701
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019307 |
Snippet name: | JavaFX Test [Dyn Module, WORKS, but compilation fails on new JDK] |
Eternal ID of this version: | #1019307/3 |
Text MD5: | c5ee41a60b9a61fda7c1dbf90a5e41ff |
Transpilation MD5: | 0e379539277c7ea58790d2ba95a2803a |
Author: | stefan |
Category: | javax / javafx |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-19 13:26:39 |
Source code size: | 707 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 421 / 3772 |
Version history: | 2 change(s) |
Referenced in: | [show references] |