From 5ccd8ce1b17714909396faf42ac349ca62ef3e6a Mon Sep 17 00:00:00 2001 From: Pedro Rolon Date: Tue, 6 Nov 2018 16:10:41 -0300 Subject: [PATCH] Se agregó el archivo Readme Se Modificó la clase Something.java para cambiar imagen --- README.md | 4 ++++ Something.java | 4 ++-- bic.png | Bin 17393 -> 0 bytes bici.png | Bin 0 -> 17393 bytes 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 README.md delete mode 100644 bic.png create mode 100644 bici.png diff --git a/README.md b/README.md new file mode 100644 index 0000000..fea3c81 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# ANOTACIONES +### Para compilar y ejecutar +* compilar con `javac Something.java` +* luego, ejecutar con `java Something` \ No newline at end of file diff --git a/Something.java b/Something.java index a072003..e5f326a 100644 --- a/Something.java +++ b/Something.java @@ -10,7 +10,7 @@ import java.io.FileInputStream; import java.io.FileNotFoundException; import javafx.scene.image.Image; import javafx.scene.image.ImageView; -import Bicicleta; +//import Bicicleta; public class Something extends Application { @@ -49,7 +49,7 @@ public class Something extends Application try{ //FileInputStream inputstream = new FileInputStream("file:javacleta.png"); - FileInputStream inputstream = new FileInputStream("javacleta.png"); + FileInputStream inputstream = new FileInputStream("bici.png"); //se setea el tamaño de la imagen! Image img = new Image(inputstream, 50, 50, false, false); //gc.drawImage(img, 0, 0); diff --git a/bic.png b/bic.png deleted file mode 100644 index 8320427..0000000 Binary files a/bic.png and /dev/null differ diff --git a/bici.png b/bici.png new file mode 100644 index 0000000..8320427 Binary files /dev/null and b/bici.png differ -- libgit2 0.26.0