Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In JavaFX. Must be in JavaFX I need to create a nested for loop that will create 6 rows and 6 columns of circles with

In JavaFX. Must be in JavaFX

I need to create a nested for loop that will create 6 rows and 6 columns of circles with a radius of 40 inside of a pane for a GUI.

should look like the right side of this image with all of the circles

image text in transcribed

This is the code that I have to far but is not working.

//instance variables

private Circle circle; private Circle[][] circleArray;

//Instantiate the two dimensional circleArray that contains //6 columns and 6 rows of circles (36 in total) for(int i = 0; i

Compiling error is happening here

//Use nested loop to instantiate the 6 columns by 6 rows of //Circle objects, add them inside the circleArrary for(int i = 0; i Color Circle Grids X PrimaryColor Black BackgroundColor White Stroke Width 1 X

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions