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.shape.Line;
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);
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, 500, 500);
root.getChildren().add(imv);
root.getChildren().add(lx);
primaryStage.setTitle("face");
primaryStage.setScene(scene);
primaryStage.show();
}
}