This is a JAVA application program
language: java
Please help me to solve this java program with code. Thanks!
Assignment 1: Notepad Editor UI The demonstration week for this assignment is the week of March (8-12th), 2021. No demonstration will result in zero mark. This lab assessment is worth 30marks (8% weightage). Objectives Build a notepad editor with menu structure that would allow to control the appearance of the text in the editor box. The end result should look like this: Note Editor File Format Tasks Involved 1) Place a scroll pane and text area on the frame. You must use GridBagLayout as in:- gridx - 0 editor ScrollPane gridy - 0 2) Set the properties: a) NotePad Editor Frame: title, resizable b) editor ScrollPane : preferredSize, vewportView, gridx, gridy c) editorArea Text : font, lineWrap, wrapStyle Word Menu structure must display like this: X Note Editor File Format Bold Cute Italic Size Small Chris Medium CM Large CL 1 3) Name and accelerator keys for the menu bar: Text File New Open Save Edit Exit Format Bold Italic Size Small Medium Large Name file Menu newMenuItem Open Menultem saveMenultem edit Menultem exit Menultem formatMenu bold Menultem (checkbox) italicMenultem (checkbox) size Menu small Menultem (RadioButton-sizeGroup) medium Menultem (RadioButton-sizeGroup) largeMenultem (RadioButton-sizeGroup) Accelerator N/A
-N -O -S -E None N/A -B - N/A -S -M -L 4) Add the listeners and their corresponding code for event methods depending on the selection of the corresponding menu items. Make sure to set the text area font and size routine based on the 'Format' menu choices. Goals To successfully complete this assessment and obtain all the marks, you must: a) Assure that 'Format menu' works in accordance with the checkbox and radio buttons' selection b) Assign an icon to the notePad frame c) Declare that window close button and exit menu option will let the application know when to close d) Be able to compile and execute this code from the command line. You will be called upon to do so, so have your command prompt ready during your lab session. Marking Scheme Item Ul components are not correctly arranged TextArea properties are not set appropriately Accelerators are not working Other specification violations Code violates Java formatting, variable naming conventions, comment headers Missed demonstration Ran in Netbeans, but not from the command line. Total Penalty 5 marks 5 marks 10 marks 3 marks 2 marks 30 marks 5 marks Out of 30. 2 Assignment 1: Notepad Editor UI The demonstration week for this assignment is the week of March (8-12th), 2021. No demonstration will result in zero mark. This lab assessment is worth 30marks (8% weightage). Objectives Build a notepad editor with menu structure that would allow to control the appearance of the text in the editor box. The end result should look like this: Note Editor File Format Tasks Involved 1) Place a scroll pane and text area on the frame. You must use GridBagLayout as in:- gridx - 0 editor ScrollPane gridy - 0 2) Set the properties: a) NotePad Editor Frame: title, resizable b) editor ScrollPane : preferredSize, vewportView, gridx, gridy c) editorArea Text : font, lineWrap, wrapStyle Word Menu structure must display like this: X Note Editor File Format Bold Cute Italic Size Small Chris Medium CM Large CL 1 3) Name and accelerator keys for the menu bar: Text File New Open Save Edit Exit Format Bold Italic Size Small Medium Large Name file Menu newMenuItem Open Menultem saveMenultem edit Menultem exit Menultem formatMenu bold Menultem (checkbox) italicMenultem (checkbox) size Menu small Menultem (RadioButton-sizeGroup) medium Menultem (RadioButton-sizeGroup) largeMenultem (RadioButton-sizeGroup) Accelerator N/A -N -O -S -E None N/A -B - N/A -S -M -L 4) Add the listeners and their corresponding code for event methods depending on the selection of the corresponding menu items. Make sure to set the text area font and size routine based on the 'Format' menu choices. Goals To successfully complete this assessment and obtain all the marks, you must: a) Assure that 'Format menu' works in accordance with the checkbox and radio buttons' selection b) Assign an icon to the notePad frame c) Declare that window close button and exit menu option will let the application know when to close d) Be able to compile and execute this code from the command line. You will be called upon to do so, so have your command prompt ready during your lab session. Marking Scheme Item Ul components are not correctly arranged TextArea properties are not set appropriately Accelerators are not working Other specification violations Code violates Java formatting, variable naming conventions, comment headers Missed demonstration Ran in Netbeans, but not from the command line. Total Penalty 5 marks 5 marks 10 marks 3 marks 2 marks 30 marks 5 marks Out of 30. 2