Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Place a scroll pane and text area on the frame. You must use GridBagLayout as in:- Set the properties: NotePadEditor Frame: title, resizable editorScrollPane :

  1. Place a scroll pane and text area on the frame. You must use GridBagLayout as in:-

  1. Set the properties:
    1. NotePadEditor Frame: title, resizable
    2. editorScrollPane : preferredSize, vewportView, gridx, gridy

editorAreaText : font, lineWrap, wrapStyleWord

  1. Name and accelerator keys for the menu bar:

Text

Name

Accelerator

File

fileMenu

N/A

New

newMenuItem

-N

Open

openMenuItem

-O

Save

saveMenuItem

-S

Edit

editMenuItem

-E

Exit

exitMenuItem

None

Format

formatMenu

N/A

Bold

boldMenuItem (checkbox)

-B

Italic

italicMenuItem (checkbox)

-I

Size

sizeMenu

N/A

Small

smallMenuItem (RadioButton-sizeGroup)

-s

Medium

mediumMenuItem (RadioButton-sizeGroup)

-M

Large

largeMenuItem (RadioButton-sizeGroup)

-L

  1. 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.

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

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 401(k) feature?

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago