The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Program 4-5please help with writing this program. thank you!
|
Directions |
Points |
|
The files must be called <LiFiUnit8Ch18.java> The files must be called as specified above, (LiFi = Your Last Initial Your First Initial) Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter. Only submit the .java files needed to make the program run. Do not submit the .class files or any other files. |
5% |
|
Style Components Include properly formatted prologue, comments, indenting, and other style elements as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892. |
5% |
|
Topics covered in chapter Topics with * are covered in this assignment. Ensure you use every item listed below in your completed assignment. *GUI Design and Layout Mangers *FlowLayout manger *JPanel Class |
|
|
Basic Requirements Write a program that that displays a JFrame window with 5 buttons. The buttons will be used to control the background color. The button’s text will be randomly chosen from 5 colors and the background color will change to the color shown on the button. See sample output below. |
LiFiUnit8Ch18.java
Create a JFrame window
o Display 5 buttons showing 1 color each in a random order from the
choices: Red, Blue, Yellow, Green, White o Ensure no color name is duplicated
Upon clicking a button:
o Background color should change depending on which button was
clicked and which color name was on that button
o Buttons should reorganize themselves in a random order
90%
|
NOTE: Complete your activity and submit it by clicking “Submit Assignment” |
|
|
Total Percentage |
100% |
ATTACHMENT PREVIEW Download attachment
Unit 8 Chapter 18 AssignmentGrading Information:This Program isdueonDate Specified.Comments areREQUIRED; flow charts and pseudocode areNOT REQUIRED.DirectionsPointsThe files must be called <LiFiUnit8Ch18.java>The files must be called as specified above, (LiFi = Your Last Initial Your First Initial)Proper coding conventions required the first letter of the class start with a capitalletter and the first letter of each additional word start with a capital letter.Only submit the .javafiles needed to make the program run. Do not submit the.classfiles or any other files.5%Style ComponentsInclude properly formatted prologue, comments, indenting, and other style elementsas shown in Chapter 2 starting page 64 and Appendix 5 page 881-892.5%Topics covered in chapterTopics with * are covered in this assignment. Ensure you use every item listed below in yourcompleted assignment.*GUI Design and Layout Mangers*FlowLayout mangerBoxLayout managerGridLayout Manager*JPanel ClassJTextArea ComponentJCheckBox ComponentJRadionButton ComponentJComboBox ComponentBasic RequirementsWrite a program that that displays a JFrame window with 5 buttons. The buttons willbe used to control the background color.The button’s text will be randomly chosen from 5 colors and the background color willchange to the color shown on the button.See sample output below.
Attachments:
-----------