import javafx.application.Application; import javafx.application.Launcher; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.stage.Stage; import javafx.stage.StageStyle; import java.io.IOException; /** * Created by IntelliJ IDEA. * User: sherod * Date: 22/02/11 * Time: 12:24 PM * To change this template use File | Settings | File Templates. */ public class main extends Application { public static void main(String[] args) { Launcher.launch(main.class, args); } @Override public void start() { ImageView imageView = new ImageView(new Image("http://a0.twimg.com/profile_images/1140543425/bw-cc_reasonably_small.jpg")); Group group = new Group(); group.getChildren().add(imageView); Scene scene = new Scene(group,300,300); Stage stage = new Stage(StageStyle.DECORATED); stage.setScene(scene); stage.setVisible(true); } }