package delta;
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.image.Image;
import java.io.File;
import javafx.scene.image.ImageView;
public class pro extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
Image im = new Image(new File("z.jpg").toURI().toString(), 500, 500, false, false);
ImageView sel = new ImageView();
sel.setImage(im);
StackPane root = new StackPane();
root.getChildren().addAll(sel);
Scene scene = new Scene(root, 700, 700);
primaryStage.setTitle("写真");
primaryStage.setScene(scene);
primaryStage.show();
}
}
最終更新:2013年09月23日 05:56