Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In my java code I am trying to make a smiling emoji with glasses but I can't get the face to center correctly and it
In my java code I am trying to make a smiling emoji with glasses but I can't get the face to center correctly and it only shows one lense of the glasses instead of two: import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.Group;
import javafx.scene.shape.;
import javafx.scene.paint.;
import javafx.stage.Stage;
public class Emoji extends Application
@Override
public void startStage stage throws Exception
Color c Color.rgb;
Circle circle new Circle;
circle.setCenterX;
circle.setCenterY;
circle.setRadius;
circle.setFillc;
Circle c new Circle;
csetCenterX;
csetCenterY;
csetRadius;
csetFillColorTRANSPARENT;
csetStrokeColorBLACK;
csetStrokeWidth;
Circle c new Circle;
csetCenterX;
csetCenterY;
csetRadius;
csetFillColorTRANSPARENT;
csetStrokeColorBLACK;
csetStrokeWidth;
Arc ar new Arc;
arsetCenterX;
arsetCenterY;
arsetRadiusX;
arsetRadiusY;
arsetTypeArcTypeOPEN;
arsetFillColorTRANSPARENT;
arsetStrokeColorBROWN;
arsetStrokeWidth;
Line line new Line;
Ellipse el new Ellipse;
elsetCenterXf;
elsetCenterYf;
elsetRadiusXf;
elsetRadiusYf;
elsetFillColorBROWN;
Ellipse e new Ellipse;
esetCenterXf;
esetCenterYf;
esetRadiusXf;
esetRadiusYf;
esetFillColorBROWN;
Group g new Group;
ggetChildrenaddAllcircle c c ar line el e;
Scene scene new Sceneg;
stage.setScenescene;
stage.setTitleEmoji;
stage.show;
public static void mainString args
Application.launchargs;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started