Question: 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
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:
Step by Step Solution
3.34 Rating (160 Votes )
There are 3 Steps involved in it
Below is the Java class for the provided class diagram and the Swing application based on the specif... View full answer
Get step-by-step solutions from verified subject matter experts
