diff --git a/src/main/java/latice/application/LaticeApplicationWindow.java b/src/main/java/latice/application/LaticeApplicationWindow.java index 8d67f44..9517c0f 100644 --- a/src/main/java/latice/application/LaticeApplicationWindow.java +++ b/src/main/java/latice/application/LaticeApplicationWindow.java @@ -83,7 +83,7 @@ public class LaticeApplicationWindow extends Application{ Rectangle r[] = new Rectangle[81]; for (int i=1; i<10 ; i++) { for (int j=1; j < 10 ; j++) { - r[i] = new Rectangle(i*52+336,j*52+15,50,50); + r[i] = new Rectangle(i*52+336,j*52-17,50,50); r[i].setFill(realColor.TRANSPARENT); r[i].setStroke(realColor.BLACK); diff --git a/src/main/java/latice/model/Rack.java b/src/main/java/latice/model/Rack.java index 39f44a1..44f7f1f 100644 --- a/src/main/java/latice/model/Rack.java +++ b/src/main/java/latice/model/Rack.java @@ -61,6 +61,8 @@ public class Rack { image = new Image(tile.getShape().getStringShape() + "_" + tile.getColor().getStringColor()+ ".png"); imageView = new ImageView(image); + imageView.setFitHeight(80); + imageView.setFitWidth(80); rack.getChildren().add(imageView); }