Question: 1. (100 pts) Write a Java application that implements a color sampler, with the following The graphical user interface is illustrated by the following picture:

 1. (100 pts) Write a Java application that implements a color

1. (100 pts) Write a Java application that implements a color sampler, with the following The graphical user interface is illustrated by the following picture: Color Sampler Ret: 255 Greem: 255 Blue: ey Each color is described by its name and its red, green and blue components. .Colors are read from a file, with a format illustrated by the following example: 255 0 0 0 255 0 0 0 255 255 255 0 0 255 255 Red Blue Yellow Cyan Magenta 255 0 255 Orange 255 100 0 Pink 255 20 145 125 125 125 Black White 255 255 255 For the currently selected color, the three text fields show its R, G, B values, while the top component (the "color sample") is painted with that color . The currently selected color can be modified by using the and - buttons (preferably in increments of 5). Every time such a change occurs, the appropriate text field and the color sample must also change accordingly. In addition, amust be appended to the window title, to show that the current color has been modified, but not saved. The following picture illustrates the application window during such changes: Color Sampler Red: 125 Greerc: 185 Blue: 185 Pressing the Save button causes the modified values for the current color to be retained. The disappears from the window title. Pressing the Reset button causes the original values of the current color (or the ones last saved) to be restored. The text fields and the color sample must change accordingly. The also disappears from the window title. If another color is selected from the list, any unsaved changes to the current color are lost. The colors (possibly modified and saved) are written back to the same file upon program

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 Databases Questions!