From 172663cb13d0444be39778b3d8f20cb087b377d5 Mon Sep 17 00:00:00 2001 From: cemal Date: Wed, 4 May 2022 09:51:50 +0200 Subject: [PATCH] Adjusts to rack and plateau --- src/main/java/latice/application/LaticeApplicationWindow.java | 2 +- src/main/java/latice/model/Rack.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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); }