Create a simple GUI that consists of three sliders - one to control the amount of red, one to control the amount of blue, and one to control the amount of green - such that when one of the sliders is adjusted the color in the central panel changes accordingly. The GUI should look as follows:
The layout of the above consists of a panel with the three sliders placed in the NORTH and a panel showing the color placed in the CENTER of a BorderLayout. To change the color of the panel, you will use
setBackground(new Color(red, green, blue));
where red, green, and blue are values between 0 and 255, retrieved from the respective sliders.
Your solution must use the following classes:
Each class must be in its own Java file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here