Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sample;
- import java.io.IOException;
- import java.net.URL;
- import java.util.ResourceBundle;
- import javafx.application.Application;
- import javafx.fxml.FXML;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Scene;
- import javafx.scene.layout.AnchorPane;
- import javafx.scene.layout.BorderPane;
- import javafx.scene.canvas.Canvas;
- import javafx.scene.canvas.GraphicsContext;
- import javafx.scene.control.ScrollPane;
- import javafx.scene.paint.Color;
- import javafx.stage.Stage;
- public class Main extends Application {
- public static void main(String[] args) {
- launch(args);
- }
- @Override
- public void start(Stage stage) throws IOException {
- AnchorPane root;
- BorderPane root2;
- ScrollPane root3;
- // try {
- // root = (AnchorPane)FXMLLoader.load(getClass().getResource("sample10.fxml"));
- root = (AnchorPane)FXMLLoader.load(getClass().getResource("sample9.fxml"));
- Scene scene = new Scene(root,1500,700);
- stage.setScene(scene);
- stage.show();
- // } catch (IOException e) {
- // e.printStackTrace();
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement