Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Why can't I move the horizontal line up in my java code. Line line 1 1 = new Line ( - x / 2 .

Why can't I move the horizontal line up in my java code. Line line11= new Line(-x /2.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 to hold the lines
StackPane lines = new StackPane();
lines.getChildren().addAll(line11, line12);
//GridPane for layout
GridPane pane = new GridPane();
pane.setPadding(new Insets(50,50,50,50));
pane.add(lines,2,2);
pane.add(angle,0,0);
pane.add(c,1,1);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

More Books

Students also viewed these Databases questions