Question: Instructions 1 . Start NetBeans. 2 . Create a new project called Lab 1 1 . 3 . Create a JavaFX main class file using
Instructions Start NetBeans. Create a new project called Lab Create a JavaFX main class file using the class name YourLas N NameLab with your actual last name. From main method invoke the launch method to execute the start method Write the following code within the start method with following: Group root new Group; You should get the following output: Utilize different methods covered in class, available through Java Graphical Libraries to implement the following: Implement the following within the start method. a Fill the canvas in orange color. Use setFill and fillRect methods to set the fill color and fill the rectangle, respectively. b Draw the green soccer field with white outline. The width is and height is pixels. The x and y position of the upper left corner of the rectangle is pixels. c Use the strokeLine method to draw the center line in white. All shape's outline will be white in color in rest of parts. d Use the strokeOval method to draw the center circle. Set the width and height to pixels. e Draw the penalty area on both sides. Use the strokeRect method, and the width and height of the rectangle will be and pixels. Make sure they are positioned in middle of each side. f Draw the penalty arc. Use the strokeArc method, set proper angles, and set ArcType to OPEN. Calculate and set appropriate starting point of the invisible rectangle and width and height, when drawing the arc. g Use the fillText method to display "Soccer Filed" at the top. Page of h Following figures specifies the pixels amount of different shapes: Hand in all your source files to the DL assignment dropbox called Lab The comments in each file should contain your name, CSCI Lab and a description of what the class defined in the file does.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
