Part A:

(Use JScrollBar) Write a program that uses scroll bars to select the fore- ground color for a label, as shown in Figure 17.29. Three horizontal scroll bars are used for selecting the color’s red, green, and blue components. Use a title border on the panel that holds the scroll bars.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Part B: Write code and test the solutions for the following problems from the textbook:

 

 

 

*17.7 (Set clock time) Write a program that displays a clock and sets the time with the input from three text fields, as shown in Figure 17.22. Use the StillClockin Listing 13.10.

    • 12 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      ans.zip