Simple GIS

GISプログラムの練習

pic

package face7;

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.Group;
import javafx.scene.image.*;
 import javafx.scene.layout.HBox;

import javafx.scene.image.Image;

public class pro extends Application {
    
    Image img;
    ImageView imv;
    
    

    public static void main(String args) {
        launch(args);
    }
    
    
    @Override
public void start(Stage primaryStage) {
              
img = new Image("http://img.ske48.co.jp/profile/large/matsui_rena.jpg");


imv = new ImageView(img);
imv.setFitWidth(300);
imv.setFitHeight(365);
imv.setLayoutX(50);
imv.setLayoutY(50);
  
Group root = new Group();
Scene scene = new Scene(root, 500, 500);
        
root.getChildren().add(imv);
     
primaryStage.setTitle("face");
primaryStage.setScene(scene);
primaryStage.show();
    }

}