Question: 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) | |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
