Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write in Java swing the program Please write all the codes, textfield,label,panel in the TextEditorFrame.java and and this class must JFrame and impliment AcrionListener

Please write in Java swing the program
Please write all the codes, textfield,label,panel in the
TextEditorFrame.java and and this class must JFrame and impliment AcrionListener
Please when setting the JFram constructor use the Superclass method
Please in the TextEditorProgram.Java
Only call the TextEditorFrame class dont write codes
See photo for more detailes
Text Editor Program
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 (This image has been cropped):
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.
The text editor must have a menu bar containing a single File menu.
The File menu should have the options of New, Open, Save, and Exit. (See photos)
o Menu items should have the mnemonics shown below as well.
When the user selects the New menu item, the text area should be cleared.
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.
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.
When the user selects the Exit menu item, the program should end.
The text area should be scrollable but have no word wrapping.
Additional Image
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.
Note
DO NOT USE A GUI/FORM DESIGNER TOOL TO CREATE THIS PROGRAM
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

=+ Why have these changes occurred?

Answered: 1 week ago

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago