Q.6: Suppose the following notepad app has the menu clear, bold, and exit. For text writing I have used rich text box. You have to write event handlers that perform the following functionalities for this notepad app. When you click the clear menu it checks the rich text box if it contains any text it will erase that text and make the rich text box empty, if the rich text box is already empty it shows the message in message box that the rich text box is already cleared When you click the bold menu it bolds the selected text, if no text is selected it shows the message in message box that please select any text first. When you click the exit menu it closes the notepad app window. (14) Notapad C Bold Lat
Q.6: Suppose the following notepad app has the menu clear, bold, and exit. For text writing I have used rich text box. You have to write event handlers that perform the following functionalities for this notepad app. When you click the clear menu it checks the rich text box if it contains any text it will erase that text and make the rich text box empty, if the rich text box is already empty it shows the message in message box that the rich text box is already cleared When you click the bold menu it bolds the selected text, if no text is selected it shows the message in message box that please select any text first. When you click the exit menu it closes the notepad app window. (14) Notapad C Bold Lat
Chapter15: Using Javafx And Scene Builder
Section: Chapter Questions
Problem 9PE
Related questions
Question
FOLLOW THE IMAGE (VISUAL DOT NET)
![Q.6: Suppose the following notepad app has the menu clear, bold, and exit. For text writing I have used rich text
box. You have to write event handlers that perform the following functionalities for this notepad app.
When you click the clear menu it checks the rich text box if it contains any text it will erase that text
and make the rich text box empty, if the rich text box is already empty it shows the message in
message box that the rich text box is already cleared
When you click the bold menu it bolds the selected text, if no text is selected it shows the message in
message box that please select any text first.
When you click the exit menu it closes the notepad app window. (14)
Notapad
C Bold Lat](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe39a953d-9a88-4cf6-8109-87eda10c300d%2Fe2ceb08a-e114-4b85-993a-7bf71bd4e6c6%2Fsr2zl46_processed.png&w=3840&q=75)
Transcribed Image Text:Q.6: Suppose the following notepad app has the menu clear, bold, and exit. For text writing I have used rich text
box. You have to write event handlers that perform the following functionalities for this notepad app.
When you click the clear menu it checks the rich text box if it contains any text it will erase that text
and make the rich text box empty, if the rich text box is already empty it shows the message in
message box that the rich text box is already cleared
When you click the bold menu it bolds the selected text, if no text is selected it shows the message in
message box that please select any text first.
When you click the exit menu it closes the notepad app window. (14)
Notapad
C Bold Lat
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning