Find Jobs
Hire Freelancers

Recursive Find-and-Replace for a Swing based Text Editor

$30-5000 USD

В роботі
Опублікований over 21 years ago

$30-5000 USD

Оплачується при отриманні
This lab is based on the Notepad example that comes with the SDK. I added comments and started the lab for you by adding find to the pull-down menu and the tool bar and having find generate a modal dialog box. You will notice that most of the code you can ignore. This project just involves adding a few basic modifications to a notepad. It doesn't involve adding many methods. ## Deliverables Improve readability of code 1. Move the main() method to the top of the class so it is easier to find. 2. Get rid of magic numbers and magic strings that are marked with // ## 3. Change constants to the form ICON_SUFFIX 4. Improve variable names marked // ## 5. Hide all methods and fields that do not need to be public. Modify Look and Feel 1. The configuration of the pull-down menus and the tool bar are set by resources/Notepad.properties. In this file you will find many resource definitions. They are retrieved from the file with methods like [login to view URL] (). Notepad responds to actions. A common action listener is registered for both the pull-down menu and the tool bar. Most actions related to typing are handled by the action listeners from JTextComponent. NotePad itself has seven separate action listeners of its own that enumerated in [login to view URL] []. By modify resources/[login to view URL] add find_and_replace: 1. Generate a Find pull-down menu and move find to the new menu. 2. Add a find_and_replace item . 3. Add a find_and_replace icon to the toolbar. 4. Specify tool tips for find and find_and_replace 5. Specify your icons for find and find_and_replace. Handle the find_and_replace action 1. Create a Replace() inner class based on the find inner class. Use [login to view URL] to show you can "get there from here". Register the listener 1. add the action listener for find_and_replace to the array Notepad.defaultActions. You must give it a label that is the same as the Action property in the resources file. Use find as an example. 2. Click the find button multiple times, the window keeps opening, fix this. 3. Create dialog boxes to implement find and find_and_replace. Start with CustomDialog and implement FindDialog. When you done, extend FindDialog to ReplaceDialog. Use a format for your dialog boxes from your favorite favorite application. You will need to implement the following buttons for the ReplaceDialog: find next, replace, replace all, cancel Allow the user to select either a recursive or iterative search and replace. How you do this is up to you. Display the button hits and modes using [login to view URL] Search [login to view URL] a word in a document. Indicate the location of the word by moving the cursor to the beginning of the word 2. Prompt user when the end of the page is reached by generating a dialog box. Search and Replace 1. Find a word in the document. Allow the user to replace word and go to the next, or skip the replace and just go to the next matching word. 2. Iteratively find and replace all the matching words in the document. Report number of replacement either in the status bar or on the console. 3. Recursively find and replace all the matching words in the document. Report number of replacement either in the status bar or on the console. 4. Prompt user when end of page is reached during the search. Either generate a dialog box or a beep with a message on status bar. 5. Allow the user to specify the the search 1. matches case 2. searches up or down 3. matches only whole words 5. Measure the time taken to complete the global search and replace using (using [login to view URL]()). Display the time in the status bar or use [login to view URL]()) which might be easier. ## Platform Any operating system. ## Deadline information This needs to be completed by Saturday October 12th 2002. Fully documented is preferred.
ID проекту: 2874887

Про проект

8 пропозицій(-ї)
Дистанційний проект
Активність 22 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$7 USD за 14 дні(-в)
5,0 (5 відгуки(-ів))
2,0
2,0
8 фрілансерів(-и) готові виконати цю роботу у середньому за $62 USD
Аватарка користувача
See private message.
$85 USD за 14 дні(-в)
5,0 (122 відгуки(-ів))
6,8
6,8
Аватарка користувача
See private message.
$25,50 USD за 14 дні(-в)
4,8 (37 відгуки(-ів))
5,3
5,3
Аватарка користувача
See private message.
$85 USD за 14 дні(-в)
4,7 (41 відгуки(-ів))
4,7
4,7
Аватарка користувача
See private message.
$127,50 USD за 14 дні(-в)
4,8 (9 відгуки(-ів))
3,3
3,3
Аватарка користувача
See private message.
$55,25 USD за 14 дні(-в)
4,5 (18 відгуки(-ів))
2,4
2,4
Аватарка користувача
See private message.
$25,50 USD за 14 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
See private message.
$85 USD за 14 дні(-в)
0,0 (1 відгук)
0,0
0,0

Про клієнта

Прапор UNITED STATES
United States
4,9
5
На сайті з жовт. 6, 2002

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.