import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
//import javafx.scene.layout.Pane;
import javafx.stage.Stage;
public class ShowImage extends Application{
public void start(Stage primaryStage) {
HBox pane = new HBox(10);
pane.setPadding(new Insets(5,5,5,5));
Image image = new Image("image/us.gif");
pane.getChildren().add(new ImageView(image));
Scene scene = new Scene(pane);
primaryStage.setTitle("ShowImage");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
Application.launch(args);
}
}