In java please write this program
Its graphical user interface and object oriented design so i need to code
One TextEditorFrame.java
And second TextEditorProgram.java see photos please
Create a graphical text editor program. The window should only consist of a scrollable text area. The user should have the menu options to create new files and open/save existing files.
Your Text Editors window size should be 500 pixels wide and 500 pixels tall.
How your Text Editor must look (See photos):
1-When the program first starts, the windows text area should be empty.
o You can place a text area directly on the frame for this program.
o The text area will fill the entire window, so the initial height and width of the text area will not matter.
2-The text editor must have a menu bar containing a single File menu.
3-The File menu should have the options of New, Open, Save, and Exit. (Shown below)
o Menu items should have the mnemonics shown below as well.(see photos)
4- When the user selects the New menu item, the text area should be cleared.
5- When the user selects the Open menu item, an open file chooser window should appear.
o When the user selects their file, the contents of the file should be displayed in the text area.
6-When the user selects the Save menu item, a save file chooser window should appear.
o When the user selects their file, the contents of the text area should be written to the
file the user selected.
7-When the user selects the Exit menu item, the program should end.
8-The text area should be scrollable but have no word wrapping.
Additional Image(see photos)
Tips
After opening/reading an existing file, be sure to close it. If you leave it open, the user will be unable to overwrite the existing file if it wasnt closed.
When reading a file, you can build a string that contains the contents of the file, then use that string to set the text areas text
DO NOT USE A GUI/FORM DESIGNER TOOL TO CREATE THIS PROGRAMS USER INTERFACE. DOING SO WILL RESULT IN A ZERO. I WILL KNOW IF YOU USED ONE.
Please show your op sample
File Edit Format View Help package assignment; * Text Editor Window. * This class must extend 3Frame and implement Actiontistener. @author YOUR NAME HERE public class TexteditorFrame (