Modifying a Java GUI

Color Genetics: GUI

This is the first of a two-part assignment dealing with a simulation of genetics (i.e., the other inheritance). In this part, your task is to complete the GUI for a model that implements a genetic simulation. In the next assignment, you will use multi-threading to make the interface more responsive.

The completed simulation can be found here, although the one you will be producing in this first part of the assignment is this somewhat less responsive version.

The simulation concerns an array of single-celled organisms. The "genome" for each cell consists of 24 bits, which are represented in the simulation as color values (8 bits each to the red, green, and blue components). When the "Go" button is pressed, the simulation moves forward through several generations. In each generation, about half the cells will seek to reproduce. To do so, they choose a mate from among the neighboring cells (two policies for choosing a mate can be simulated: choose the cell most like or most unlike yourself). A number of children cells are produced by randomly mixing the genes of the two parent cells and are then deposited in randomly selected neighboring locations. There is also a possibility that, when two genes are mixed, a mutation will occur and the resulting child's gene will be selected randomly. (Thus, even if we start with an entirely uniform population, some genetic drift may occur.)

When the simulation is started, a mixture of different colors is deposited as a starting pattern. You can alter the pattern by using the color selector control and then dragging your mouse across the simulated area to select a rectangle. That rectangle will be filled with the indicated color.


The code supplied to you includes the complete model, but much of the GUI remains unimplemented. Your task is to add code to [url removed, login to view] (the "window" class) to make your version look and behave like the one here.

The code for this assignment is in ~zeil/cs330/Assignments/geneticsGUI. The code can be run as an application

java [url removed, login to view]

or as an applet ([url removed, login to view])

Skills: Graphic Design, User Interface / IA, Website Design

See more: assignment, seek a, population of java, java population, java design pattern, java bits, gui number, gui application design, graphic design assignments, code for website design in java, blue seek, a seek, applet.start, applet start, graphic pattern, Multi threading , modifying, java simulation, generations, Gene , java blue, gui applet, gui control, java applet gui, java graphic design

About the Employer:
( 0 reviews ) Virginia Beach, United States

Project ID: #4008167

4 freelancers are bidding on average $218 for this job


I have check this requirement,i need to discuss this,please tell me how we can start the [url removed, login to view] PM.

$220 USD in 15 days
(8 Reviews)

I look forward to discuss further and deliver the project

$250 USD in 8 days
(6 Reviews)

Is the GUI in Swing or JavaFX? Timeline will be highly dependent on how much of the implementation remains to be completed, and how usable the current model is. Any target deadline will be speculation until details a More

$200 USD in 10 days
(0 Reviews)

Hi, INTECH Creative Services ISO certified IT Company, Resource outsourcing/ Global Consulting and project Management solution [url removed, login to view] have very specific resources to do this job. Please go through our company webs More

$200 USD in 10 days
(0 Reviews)