Simple GIS

GISプログラムの練習

FX LINE

package graph;

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;
import javafx.scene.shape.Line;
import javafx.scene.Group;



public class pro extends Application {
    
    
   
    public static void main(String[] args) {
        launch(args);
    }
    
    @Override
    public void start(Stage primaryStage) {
        
        Line lx=new Line();
        lx.setStartX(0);
lx.setStartY(0);
lx.setEndX(400);
lx.setEndY(400);
        

       
       
        Group root = new Group();

Scene scene = new Scene(root, 700, 700); 
 root.getChildren().add(lx);
        
        primaryStage.setTitle("Hello World!");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

}