CS 2323 – HW 09
1) (Histogram) Write a program that lets the user enter a text. Clicking the Show Histogram
utton displays the occu
ences of the letters in the text in a histogram, as shown below. The
number of occu
ences of each letter is displayed in a bar chart. Use a separate stage to displayte
histogram.
2) (Manipulate list) Write a program that displays a list view and a text field. The user can add a
string to the list view by entering a string in the text field, as shown. The user can also delete a
string from the list view by selecting a string and pressing the Delete button, as shown here
3) (Retrieve files from Web) Write a Java program that retrieves a file from a Web server, as
shown in Figure 16.7. The user interface includes a text field in which to enter the URL of the
file name, a text area in which to show the file, and a button that can be used to submit an action.
A label is added at the bottom of the pane to indicate the status, such as File loaded successfully
or Network connection problem.
Grading Criteria
Histogram
1 Display JavaFX window
1 Display Editable Texbook
1 Calculate letter frequency
1.4 Button displays Histogram
1.2 Documentation
Manipulate list
1 Display JavaFX window
1.5 Add String
1.5 Delete String
1.2 Documentation
Retrieve File
1 Display JavaFX window
1 Read URL address
1 Read file from URL
1 Display Contents of File
1.2 Documentation