Commit 5ccd8ce1 by Pedro Rolon

Se agregó el archivo Readme

Se Modificó la clase Something.java para cambiar imagen
parent 299de21a
# ANOTACIONES
### Para compilar y ejecutar
* compilar con `javac Something.java`
* luego, ejecutar con `java Something`
\ No newline at end of file
...@@ -10,7 +10,7 @@ import java.io.FileInputStream; ...@@ -10,7 +10,7 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import javafx.scene.image.Image; import javafx.scene.image.Image;
import javafx.scene.image.ImageView; import javafx.scene.image.ImageView;
import Bicicleta; //import Bicicleta;
public class Something extends Application public class Something extends Application
{ {
...@@ -49,7 +49,7 @@ public class Something extends Application ...@@ -49,7 +49,7 @@ public class Something extends Application
try{ try{
//FileInputStream inputstream = new FileInputStream("file:javacleta.png"); //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! //se setea el tamaño de la imagen!
Image img = new Image(inputstream, 50, 50, false, false); Image img = new Image(inputstream, 50, 50, false, false);
//gc.drawImage(img, 0, 0); //gc.drawImage(img, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment