Laboratory Exercise Party Planner Objective: At the end of the exercise, the students should be able to: Create a menu bar with multiple user options. Apply event. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive. 2. Create a new project named LabExer8. Set the project location to your own folder. 3. Construct import statements to use the packages listed below: javax.swing java.awt java.awt.event 4. Extend the JFrame class and implement the ActionListener interface. 5. Create a JMenuBar named mainBar and two (2) Menu objects named menut and menu2. Set the text of menu 1 as File and the text of menu2 as Event Type. 6. Create the items that will appear in the menus. The File menu shall contain an Exit submenu. Name the object exit. The Event Types menu shall contain two (2) submenus: Adult and Child. Name the objects adult and hild, respectively. The bmenu consist of day (adultBday). Anniversary (anniv), Retirement (retirement), and Other (adultOther). The Child submenu shall consist of Birthday (childBday), and Other (childOther). 7. Declare several other components that will be used in the program. Create two (2) JPanel objects named currentPanel and other Panel. Create two (2) JLabel objects named currentLabel and otherLabel. The first JLabel has blank text while the second has: We have lots of ideas for memorable events. 8. Write the constructor for the JFrame. Set the title as Party Planner. Set the default close operation and create a FlowLayout object by typing new FlowLayout() within the parentheses of the set Layout() method 9. Create three (3) methods. Name them composeMenus(), addActionListeners(). and layout Components(). 10. For the composeMenus() method, set the main menu bar, and add two (2) menus to it. Then add one (1) option to the first menu and two (2) submenus to the second menu. Finally add four (4) items to the first submenu and two (2) items to the other one. 11. For the addActionListeners() method, set all the submenu options as action listeners. 12. For the layout Components() method, add currentLabel to currentPanel then add otherLabel to otherPanel. Add currentPanel and otherPanel to the JFrame. 13. Go back to the constructor and call the three (3) methods you have just created. The initial output shall be: 08 Laboratory Exercise 1 "Property of STI Page 1 of 3 ESTI IT1712 Party Planner File Event Types We have lots of ideas for memorable events 14. Write the actionPerformed() method that responds to menu selections. If the Exit submenu is clicked, the program shall terminate. Refer to the following screenshots for the program flow. Event Types > Adult > Birthday
Step by stepSolved in 3 steps with 1 images
- You risk removing a capability from an application if you want to remove a kit that's giving it to someone.arrow_forwardData should be stored at the event level, but what does that mean?arrow_forwardIt is imperative that the user interface be created before starting to write code for an application, and here are three reasons why.arrow_forward
- As a consequence of this, users may opt to input data through the command line rather than the GUI.arrow_forwardDesign a simple application activity that demonstrates the use of Andorid Checkboxes Widget. Show the screenshots of the final application and the respective codes for each important resource file.arrow_forwardFigure 1: The running application, showing the chart and its legend Lab 07 FLASH FLOOD SEVERE THUNDERSTORM SPECIAL MARINE TORNADOarrow_forward
- Salesforce Assignment: You are working in the most reputed company where you need to do the work in a great manner. You task is to create a validation rule that will check the website field has the correct extension or not. If it is wrong then show the validation error.arrow_forwardLogin and Registration form using GUI Swingarrow_forward6. Quick launch icon is a part of a. tool bar b. menu bar c. task bar d. title bararrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education