Skip to content
Snippets Groups Projects
Commit 448195e0 authored by MANSOUR Chadi's avatar MANSOUR Chadi
Browse files

Tp end

parent bc75250b
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ public class App extends Application {
@Override
public void start(Stage primaryStage) {
Drawer drawer = new Drawer(400, 400);
Drawer drawer = new Drawer(600, 400);
Group root = new Group();
root.getChildren().add(drawer.getCanvas());
......
......@@ -94,6 +94,8 @@ public class Drawer {
}else if (event.getCode() == KeyCode.C){
currentShapeType = "circle";
System.out.println("Current shape type is: " + currentShapeType);
} else if (event.getCode() == KeyCode.M) {
currentShapeType = state.StateMoveShape();
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment