Mageia Bugzilla – Attachment 8994 Details for
Bug 20220
Backport Candidate: new version of java-1.8.0-openjfx
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
java source code you can compile with javac
helloworld.java (text/x-java), 938 bytes, created by
Brian Rockwell
on 2017-02-26 23:58:59 CET
(
hide
)
Description:
java source code you can compile with javac
Filename:
MIME Type:
Creator:
Brian Rockwell
Created:
2017-02-26 23:58:59 CET
Size:
938 bytes
patch
obsolete
> >import javafx.application.Application; >import javafx.event.ActionEvent; >import javafx.event.EventHandler; >import javafx.scene.Scene; >import javafx.scene.control.Button; >import javafx.scene.layout.StackPane; >import javafx.stage.Stage; > >public class helloworld extends Application { > public static void main(String[] args) { > launch(args); > } > > @Override > public void start(Stage primaryStage) { > primaryStage.setTitle("Hello World!"); > Button btn = new Button(); > btn.setText("Say 'Hello World'"); > btn.setOnAction(new EventHandler<ActionEvent>() { > > @Override > public void handle(ActionEvent event) { > System.out.println("Hello World!"); > } > }); > > StackPane root = new StackPane(); > root.getChildren().add(btn); > primaryStage.setScene(new Scene(root, 300, 250)); > primaryStage.show(); > } >}
import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class helloworld extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { primaryStage.setTitle("Hello World!"); Button btn = new Button(); btn.setText("Say 'Hello World'"); btn.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { System.out.println("Hello World!"); } }); StackPane root = new StackPane(); root.getChildren().add(btn); primaryStage.setScene(new Scene(root, 300, 250)); primaryStage.show(); } }
View Attachment As Raw
Actions:
View
Attachments on
bug 20220
: 8994