Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Code and run the Simple Text Editor Application (0 points) 2. Code a new third, fourth, and fifth menu with 5 different options. with

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

1. Code and run the Simple Text Editor Application (0 points)

2. Code a new third, fourth, and fifth menu with 5 different options.

with correct and complete comments describing all...

files

classes

methods

data fields

flow control

blocks of code

lines of code requiring explanation

Case Study 7 A Simple Text Editor Application CS7-3 Figure CS7-3 Text displayed in various fonts and styles SansSerif font, plain style Monospaced font, bold style 0XText Editor & Text Editor ile y default, JTetArea components do not perform line wrapping r defauit, Text Area corponents do sot per forn ine wrapping. This neans that when text is s means that when ted is entered into the component, and end of a line is reached, the text does not wrap around to the ext line. You can use the JTextArea class's set.ineirap um line wrapping on, however. The method accepts a oolean argument Ifyou pass true, then line wrapping is turned n. Ifyou pass faise, line wrapping is turned off into the corgonent, and the end ot a line reached, the text does not sap around to the ap nethod to tur line rapping on pass true, then line rapping is turned on. I line. You Can use the JText Area class's The net hed accepts a boolean aryent. I pass talse, 1ine wapping is tursed ott Serit font, bold and italic style Text Editor Fie ydfaul TeArea component do not perfome line waping This at wen ed is entered into the component and the end of a ne as ,e ached, the text dode not wrup anound ithe next line You can heJTedAva clan'swtline Whag mathod to tas line wapping on, The mthod accepts a boolean arumnt you pa ue, tn Code Listing CS7-1 (TextEditor.java) 1 import java.awt.* 2 import java.awt.event.*; 3 import javax.swing.* 4 import java.io.*; 7 The TextEditor class is a simple text editor 10 public class TextEditor extends JFrame 12 / The following are fields for the menu system. 13 / First, the menu bar 14 private JMenuBar menuBar; 15

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

Why do new ventures often turn to consultants for advice?

Answered: 1 week ago

Question

Bachelors degree in Information Systems or Statistics

Answered: 1 week ago