Answered step by step
Verified Expert Solution
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 :
- Place a scroll pane and text area on the frame. You must use GridBagLayout as in:-
- Set the properties:
- NotePadEditor Frame: title, resizable
- editorScrollPane : preferredSize, vewportView, gridx, gridy
editorAreaText : font, lineWrap, wrapStyleWord
- Name and accelerator keys for the menu bar:
Text | Name | Accelerator |
File | fileMenu | N/A |
New | newMenuItem | |
Open | openMenuItem | |
Save | saveMenuItem | |
Edit | editMenuItem | |
Exit | exitMenuItem | None |
Format | formatMenu | N/A |
Bold | boldMenuItem (checkbox) | |
Italic | italicMenuItem (checkbox) | |
Size | sizeMenu | N/A |
Small | smallMenuItem (RadioButton-sizeGroup) | |
Medium | mediumMenuItem (RadioButton-sizeGroup) | |
Large | largeMenuItem (RadioButton-sizeGroup) | |
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started