Question: Instructions 1 . Start NetBeans. 2 . Create a new project called Lab 1 1 . 3 . Create a JavaFX main class file using

Instructions 1. Start NetBeans. 2. Create a new project called Lab11.3. Create a JavaFX main class file using the class name YourLas N NameLab11 with your actual last name. 4. From main method invoke the launch method to execute the start method 5. Write the following code within the start method with following: Group root = new Group(); You should get the following output: 6. 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 394 and height is 295 pixels. The x and y position of the upper left corner of the rectangle is 25 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 100 pixels. (e) Draw the penalty area on both sides. Use the strokeRect method, and the width and height of the rectangle will be 54 and 132 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 3 of 4(h) Following figures specifies the pixels amount of different shapes: 8. Hand in all your source files to the D2L assignment dropbox called Lab 11. The comments in each file should contain your name, CSCI 2011 Lab 11, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!