Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help creating a Java GUI driver that creates a concordance. There will be two ways to create a concordance. The first requires a

I need help creating a Java GUI driver that creates a concordance.

There will be two ways to create a concordance. The first requires a document to be read from an input file, and the concordance data is written to an output file. The second reads the input from a string and returns an ArrayList of strings that represent the concordance of the string. The requirements are as follows:

GUI driver

Do not allow the user to create a concordance file until they have entered an input file and an output file

Show the text area only when the option to create from text is chosen.

Use a FileChooser for the user to select the input and output files.

Inform the user if there is an error with the input file or the output file

Use exception handling (try/catch) for the validity of the files.

If creating a concordance from text, make sure the user has entered some text in the text area. Inform user if text area is empty.

Display the concordance from the text in the text area.

Provide a way for the user to clear the text area.

image text in transcribed

image text in transcribed

Example of creating a Concordance from an input file Concordance Generator Please Select from Following Options Create Concordance from File Create C from Text Select Input File Select Output File Clear Exit Select an input file and an output file. PrideAndPrejudice.txt was used Sample of output file Home Insert Page Lout Reerences Mailings Review View Acrobat Courier New Paragraph Styles Editing A.?_a.Aa. Ai' A. ?1@ Font sbout: 24, 210 abuse: 96 account: 79 acknowledged: 10 acquaintance: 173, 199, 209 aequaintances: 218 acquainted: 170 acti 177 actually: 198 addressed: 132 adjusting: 191 advantage 167 affect: 50 atraid: 223 aftez: 129, 175 agree: 185 agreed: 37 all: 24, 93. 112, 175, 203 aivays: 90, 12 amends: 216 mong 127 amuseneat: 158 Page: 1 of 9 Words 1,579 English (U.S) 2 90% Example of creating a Concordance from an input file Concordance Generator Please Select from Following Options Create Concordance from File Create C from Text Select Input File Select Output File Clear Exit Select an input file and an output file. PrideAndPrejudice.txt was used Sample of output file Home Insert Page Lout Reerences Mailings Review View Acrobat Courier New Paragraph Styles Editing A.?_a.Aa. Ai' A. ?1@ Font sbout: 24, 210 abuse: 96 account: 79 acknowledged: 10 acquaintance: 173, 199, 209 aequaintances: 218 acquainted: 170 acti 177 actually: 198 addressed: 132 adjusting: 191 advantage 167 affect: 50 atraid: 223 aftez: 129, 175 agree: 185 agreed: 37 all: 24, 93. 112, 175, 203 aivays: 90, 12 amends: 216 mong 127 amuseneat: 158 Page: 1 of 9 Words 1,579 English (U.S) 2 90%

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago