Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rectangle rect = new Rectangle ( ) ; rect.setX ( 5 0 ) ; rect.setY ( 5 0 ) ; rect.setArcHeight ( 2 * x

Rectangle rect = new Rectangle();
rect.setX(50);
rect.setY(50);
rect.setArcHeight(2* x);
rect.setArcWidth(2* x);
rect.setStroke(Color.BLUE);
rect.setFill(Color.BLUE);
rect.setStrokeWidth(3);
//created circle
//set properties
Circle c = new Circle(x);
c.setStroke(Color.RED);
c.setFill(Color.RED);
c.setStrokeWidth(3);
Line 11= new Line(-x /1.5,-x /2.5, x /1.5,-x /2.5);
Line 12= new Line(0,-x,0, x);
11.setStroke(Color.GREEN);
11.setStrokeWidth(6);
12.setStroke(Color.GREEN);
12.setStrokeWidth(6);
StackPane lines = new StackPane(11,12); I am running java, and I keep getting errors when I am trying to make the rectangle, circle, and lines. I tried rewording it and it isn't changing the errors.

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

Students also viewed these Databases questions