Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a simple tool for calculating some basic statistics about a segment of text. Your finished program should look as similar as possible (or better!)

Develop a simple tool for calculating some basic statistics about a segment of text. Your finished program should look as similar as possible (or better!) than the sample shown below. The application should have a single window with a scrolling textbox (see JTextArea) and a statistics box. The statistics box should be a panel with a titled border. This box should contain labeled fields that display the following statistics: The number of words in the textbox The average word length The number of vowels The statistics box should also contain a button. When the button is pressed, your application should re-compute the statistics for the current contents of the text field. Feel free to display extra statistics than the ones currently shown.

Tips: Remember you can nest panels. Use layout managers. You can wrap the text in a JTextArea using the method setLineWrap(true). To match on non-alphanumeric characters: \\W+ Do not place all of your code into the constructor and the event listener. Use good OO thinking to break your program into small pieces

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

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions

Question

10. List the major CRM vendors by their target market.

Answered: 1 week ago

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago