Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I get my emoji in my java code to look like this one that I uploaded.import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.Group; import javafx.scene.shape.Arc;

How do I get my emoji in my java code to look like this one that I uploaded.import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.Group;
import javafx.scene.shape.Arc;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.Line;
import javafx.scene.shape.Circle;
public class Emoji extends Application {
@Override
public void start(Stage stage){
Color head = Color.rgb(225,171,0);
Circle circle = new Circle(150,150,90, head);
Ellipse leftEye = new Ellipse (105,120,30,20);
Ellipse rightEye = new Ellipse (195,120,30,20);
Arc ar = new Arc(150,170,45,35,0,-180);
ar.setFill(Color.TRANSPARENT);
ar.setStroke(Color.BROWN);
ar.setStrokeWidth(5);
Line line1= new Line(80,130,110,140);
Line line2= new Line(190,140,220,130);
Group group = new Group();
group.getChildren().add(leftEye);
group.getChildren().add(rightEye);
group.getChildren().add(circle);
group.getChildren().add(ar);
group.getChildren().add(line1);
group.getChildren().add(line2);
Scene scene = new Scene(group,300,400);
stage.setScene(scene);
stage.setTitle("Emoji");
stage.show();
}
public static void main(String[] args){
launch(args);
}
}
image text in transcribed

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions