CS 212 – Spring 2021 – Project 1

Create a GUI called NumbersGUI (by extending JFrame as shown in lecture). The NumbersGUI should have a GridLayout of three rows and three columns.

 

For the numbers 1 to 100, fill the numbers into the “cells” of the GridLayout so that the first cell (top left or cell [1,1]) contains those numbers that are evenly divisible by 2. Cell [1,2] those that are evenly divisible by 3, cell [1,3] those that are evenly divisible by 4, cell [2,1] those that are evenly divisible by 5 and so forth. Obviously, one number may appear in more than one cell.

 

You should have two files to submit for this project:

Project1.java 

NumbersGUI.java

 

Need a custom answer at your budget?

This assignment has been answered 5 times in private sessions.

Or buy a ready solution below.

Buy ready solution

Solution previews

© 2024 Codify Tutor. All rights reserved