
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

- It is imperative that the user interface be created before starting to write code for an application, and here are three reasons why.arrow_forwardAs a result, users may choose to utilise the command line instead of the GUI to input data.arrow_forwardjust do what you can from the projectarrow_forward
- As a consequence of this, users may opt to input data through the command line rather than the GUI.arrow_forward6. Quick launch icon is a part of a. tool bar b. menu bar c. task bar d. title bararrow_forwardYou should provide three reasons why designing the user interface is necessary before writing any code for an application.arrow_forward
- The ___________window lists the projects and files included in a solution. a. Object b. Project c. Properties d. Solution Explorerarrow_forwardChoose Create a new project and then select the template for C# Desktop app for the Windows Form App (.NET Framework). Be sure to use a location on your J: drive in the virtual desktop for the Location to store the files. Name the project "Lab4". Make sure the Place solution and project in the same directory checkbox is NOT selected. Visual Studio will create an empty Console application for you to start with. When you are finished with the lab, you should make a copy of this directory and copy to your flash drive or cloud storage, as well. Create and test a Windows Form application that make simple admission decisions for a hypothetical university based on the rules given below. The user enters a numeric high school grade point average (for example, 3.2) and an admission test score. Display the message “Accept” if the student meets either of the following requirements: A grade point average of 3.0 or higher and an admission test score of at least 60 A grade point average of less than…arrow_forwardHow will you choose a design pattern for your application (architectural and design)?arrow_forward
- The language is C#. Please help me out! 1. Choose Create a new project and then select the template for C# Desktop app for the Windows Form App (.NET Framework). Be sure to use a location on your J: drive in the virtual desktop for the Location to store the files. Name the project "Lab4". Make sure the Place solution and project in the same directory checkbox is NOT selected. Visual Studio will create an empty Console application for you to start with. When you are finished with the lab, you should make a copy of this directory and copy to your flash drive or cloud storage, as well. 2. Create and test a Windows Form application that make simple admission decisions for a hypothetical university based on the rules given below. The user enters a numeric high school grade point average (for example, 3.2) and an admission test score. Display the message “Accept" if the student meets either of the following requirements: If the student does not meet either of the qualification criteria,…arrow_forwardYour team is developing an application. You have responsibility for "styling the layout." What files are you likely to update?arrow_forwardHow will you choose a design pattern for your application (architectural and design)?arrow_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





