Question: 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.

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

There will be two ways to create a concordance. The first requires

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!