1. Create the Java Class for the class diagram shown below. 115 Points] subject -subjname:String -subjcode:String...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create the Java Class for the class diagram shown below. 115 Points] subject -subjname:String -subjcode:String -subjcredit:int +subject() +subject(name:String, code:String, credit:int) +getSubjName():String +getSubjCode():String +getSubjCredit():int 2. Create a Simple Swing application with the following properties: [15 Points] (i) Import the Java package that contains all the classes we require to create swing app. (ii) Create a class called examSwing with private access specifier and do the following in the constructor of this the class. (iii) Create an object of the frame class and pass "Exam Pressure" to its constructor. Call the frame frmExam. (iv) Prevent the user from maximizing the frmExam frame. (v) Set the width of fimExam to 300 pixels, and its height 200pixels (vi) Indicate that when the user clicks on the close button on firmExam, the frame should exit. (vii)Create an object of the label class. Call it Iblexam and set its text to "Exam Fever" (viii) Position the Iblexam 150pixels and 50pixels on the X and Y axis with a width and height of 100pixels and 20pixels respectively (ix) Add Iblexam to frmExam. (x) Set the visibility property of frmExam to true. Solution: 1. Create the Java Class for the class diagram shown below. 115 Points] subject -subjname:String -subjcode:String -subjcredit:int +subject() +subject(name:String, code:String, credit:int) +getSubjName():String +getSubjCode():String +getSubjCredit():int 2. Create a Simple Swing application with the following properties: [15 Points] (i) Import the Java package that contains all the classes we require to create swing app. (ii) Create a class called examSwing with private access specifier and do the following in the constructor of this the class. (iii) Create an object of the frame class and pass "Exam Pressure" to its constructor. Call the frame frmExam. (iv) Prevent the user from maximizing the frmExam frame. (v) Set the width of fimExam to 300 pixels, and its height 200pixels (vi) Indicate that when the user clicks on the close button on firmExam, the frame should exit. (vii)Create an object of the label class. Call it Iblexam and set its text to "Exam Fever" (viii) Position the Iblexam 150pixels and 50pixels on the X and Y axis with a width and height of 100pixels and 20pixels respectively (ix) Add Iblexam to frmExam. (x) Set the visibility property of frmExam to true. Solution:
Expert Answer:
Answer rating: 100% (QA)
Below is the Java class for the provided class diagram and the Swing application based on the specif... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Waveney DIY Centers ( WDC ) operates a few dozen stores in the eastern United States. The stores are popular with home remodelers, contractors, and do - it - yourself customers. The managers at...
-
Based on the Harvard Business Review "Blockbuster Inc. & Technological Substitution (A): Achieving Dominance in the Video Rental Industry" case, (1) How does a revenue sharing contract work? Under...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Delta Catfish Company has taken a position in its tax return to claim a tax credit of $10 million (direct reduction in taxes payable) and has determined that its sustainability is more likely than...
-
Darren Dillard, majority stockholder and president of Dillard, Inc., is working with his top managers on future plans for the company. As the company's managerial accountant, you've been asked to...
-
The highway department wants to estimate the proportion of vehicles on Interstate 25 between the hours of midnight and 5:00 A.M. that are 18-wheel tractor trailers. The estimate will be used to...
-
Describe and critique, in your own words, the configuration change control procedure.
-
On October 1, 2014, Jay Pryor established an interior decorating business, Pioneer Designs. During the month, Jay completed the following transactions related to the business: Oct. 1. Jay transferred...
-
The fixed budget for 20,300 units of production shows sales of $466,900; variable costs of $60,900; and fixed costs of $144,000. QS 21-3 (Algo) Flexible budget income calculation LO P1 If the company...
-
Richard and Christine McCarthy have a 19-year-old son (born 10/2/99; Social Security number 555-55-1212), Jack, who is a full-time student at the University of Key West. Years ago, the McCarthys...
-
what ways does globalization contribute to the homogenization of cultures and the spread of Western cultural values, while also fostering hybridization, localization, and resistance to cultural...
-
What are make my day laws? How do they differ from castle doctrine laws?
-
What is the role of the PATRIOT Act in combating terrorism?
-
Is it lawful to use force to resist an arrest? Under what circumstances?
-
What is the castle doctrine? How is it relevant in the self-defense context?
-
Compare and contrast treason, sedition, and sabotage.
-
On March 2, the chief executive of Johnsen & Johnsen, Pfizer and AbbVie all rushed to California to make one last pitch to Pharmacyclics, a cover drug maker with just one product to its name. All...
-
Halley's comet travels in an ellipti- cal orbit with a = 17.95 and b = 4.44 and passes by Earth roughly every 76 years. Note that each unit represents one astronomical unit, or 93 million miles. The...
-
Mark owns his home and has a $250,000 mortgage related to his purchase of the residence. When his daughter went to college in the fall of 2012, he borrowed $20,000 through a home equity loan on his...
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
Please answer the following questions regarding the taxability of Social Security: a. A 68-year-old taxpayer has $20,000 in Social Security income and $100,000 in tax-free municipal bond income. Does...
-
If the force P causes point A to be displaced vertically by 2.2 mm, determine the normal strain developed in each wire. 600 mm B 30 P 600 mm 30 C
-
The square plate is deformed into the shape shown by the dashed lines. If DC has a normal strain x = 0.004, DA has a normal strain y = 0.005 and at D, Y xy = 0.02 rad, determine the average normal...
-
The square plate ABCD is deformed into the shape shown by the dashed lines. If DC has a normal strain x = 0.004, DA has a normal strain x = 0.005, and at D, Y xy = 0.02 rad, determine the shear...
Study smarter with the SolutionInn App