Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: Inner Classes (60%) Read all of problem 1 before starting, hints are given throughout the problems statement. See the Execution Examples, below, to

image text in transcribed
image text in transcribed
image text in transcribed
Problem 1: Inner Classes (60%) Read all of problem 1 before starting, hints are given throughout the problems statement. See the Execution Examples, below, to see what the GUI should look like. Overview Fields and Behaviors: GUI Component Behavior Will hold the text being searched. It needs to be updated when a word is found. This area is horizontal and vertical scrollable. Holds the word to be found Every time this button is pressed, the first occurrence of the "find" word in the TextArea will be located and highlighted. A named inner class. Clears the TextField that holds the word to match Sets the input focus to the 'find' text field. This does NOT clear the text area. An Anonymous inner class TextArea TextField Find Button Clear Button Windows close Close using window listener/adapter inner class and print a Thank you for using finder message An Anonymous inner class. Add a WindowListener using WindowAdapter class formatted similar to an ActionListener. Requirements: 1. You need to develop your own inner classes to handle the events. You must handle the window closing and button presses. 2. The search is case sensitive. If the case of the letters in the word in the JTextArea does not match exactly to the word in the TextField, skip over it. 3. You only need to locate the first occurrence of a string of text. Use ONE of the string methods for this find' (look up the indexOf method of the String class). 4. The Find operation is able to find text such as in this sentence, this sentence" should be found, or "s s" as end and beginning of the two words would be found

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

4.4 Summarize the components of a job description.

Answered: 1 week ago