Question: In my java program I am having issues with my crossed line output, it doesn't go all the way across to form a cross image.

In my java program I am having issues with my crossed line output, it doesn't go all the way across to form a cross image. Line line11= new Line(-x /1.5,-x /2.5, x /1.5,-x /2.5);
Line line12= new Line(0,-x,0, x);
line11.setStroke(Color.GREEN);
line11.setStrokeWidth(5);
line12.setStroke(Color.GREEN);
line12.setStrokeWidth(5);
StackPane lines = new StackPane();
lines.getChildren().addAll(line11, line12);
GridPane pane = new GridPane();
pane.setPadding(new Insets(50,50,50,50));
pane.add(line11,2,2);
pane.add(line12,2,2);
pane.add(angle,0,0);
pane.add(c,1,1);
Scene scene = new Scene(pane);
primaryStage.setTitle("Shapes in Grid");
primaryStage.setScene(scene);
primaryStage.show();
primaryStage.setResizable(false);
}
public static void main(String[] args){
launch(args);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!