Purpose: The lab this week focuses on using some CSS to style an application as well as
Question:
Code program in Java.
1. Make sure you have imported all of the classes necessary for this application. This program will require Application, Stage, Scene, Slider, TextArea, Label, HBox, VBox, and may require Pos and Insets (depending on how you approach customizing the interface). Prepare the program to be executed as a JavaFX application. 2. Implement the start method. This program will consist of three Slider controls with a Label indicating the color each affects. The Slider and Label pairs should each be placed in an HBox. The three colors will be red, green, and blue. There will also be a TextArea. The min and max values for the Slider are 0 and 255, respectively. The initial value is 0. The major ticket unit is 15. The minor tick count is 5. The width of each slider is 512. To easily align the controls, place them into a VBox container. You can refer to the example video for this lab to see how to implement the interface. 3. Make sure you include some spacing and padding in your application. You may also adjust the alignment of the VBox to achieve this. 4. Add an event listener to each Slider control that gets the value of all three Sliders and then, using inline styling, set the style for the TextArea to change the color of the text. The property related to text color is -fx-text-fill. You can use the rgb format for setting the color since each Slider holds a decimal value for that color. Make sure the Label and Slider are consistent; if you indicate a Slider is for green, that Slider should affect the amount of green in text. You can refer to the example video for this lab to better understand the expected behavior of each Slider.
**Sample below.
**Do Not worry about textfield next to set color button function.