Question: Write a class Launcher containing the following methods: (a) constructor which builds the frame shown below. The frame consists of a menu bar, two menus
Write a class Launcher containing the following methods: (a) constructor which builds the frame shown below. The frame consists of a menu bar, two menus (Launch and Exit), some menu items, and a text area. The menu items of the Launch menu are shown and there is a single menu item "exit" on the Exit menu. Declare any necessary attributes in the class and add appropriate action listeners for future use. Copy the class, including import statement(s), as the answers to this part. Launch Exit Conversion launched Rod launched DialogBox launched Launch Exit Launch Rod Launch DialogBox Launch Conversion (10] (b) actionPerformed :which perform necessary actions when each menu item is selected. Run the classes TestRod, DialogBox and Conversion when the menu items "Launch Rod", "Launch DialogBox" and "Launch Conversion" is selected respectively. To launch TestRod, you may use the following statement: TestRod.main (new String() Quit the program when the menu item "exit" is selected. Copy the method as the answers to this part (c) main o :which creates a Launcher object and sets it visible for testing. Copy the method as the answers to this part
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
