Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

CS 2323 – HW 09 1) (Histogram) Write a program that lets the user enter a text. Clicking the Show Histogram button displays the occurrences of the letters in the text in a histogram, as shown below....

1 answer below »
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
Answered Same Day Oct 14, 2021

Solution

Shweta answered on Oct 17 2021
147 Votes
SolutionCS2323
uild
uilt-jar.properties
#Sat, 17 Oct 2020 21:27:54 +0530
C\:\\Users\\Acer\\Documents\\NetBeansProjects\\SolutionCS2323=
SolutionCS2323
uild/classes/solutioncs2323/Browser$1.class
package solutioncs2323;
synchronized class Browser$1 implements javafx.beans.value.ChangeListener {
void Browser$1(Browser, Runnable);
public void changed(javafx.beans.value.ObservableValue, javafx.concu
ent.Worker$State, javafx.concu
ent.Worker$State);
}
SolutionCS2323
uild/classes/solutioncs2323/Browser$2.class
package solutioncs2323;
synchronized class Browser$2 {
static void ();
}
SolutionCS2323
uild/classes/solutioncs2323/Browser.class
package solutioncs2323;
synchronized class Browser extends javafx.scene.layout.Pane {
protected final javafx.scene.web.WebView webView;
protected final javafx.scene.web.WebEngine webEngine;
String labelProgressString;
void Browser();
public javafx.scene.web.WebView getWebView();
public javafx.scene.web.WebEngine getEngine();
public String getLabelValue();
public Browser load(String, Runnable);
public String getHTML();
}
SolutionCS2323
uild/classes/solutioncs2323/Histogram.class
package solutioncs2323;
public synchronized class Histogram extends javafx.application.Application {
public void Histogram();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
SolutionCS2323
uild/classes/solutioncs2323/ManipulateList.class
package solutioncs2323;
public synchronized class ManipulateList extends javafx.application.Application {
public void ManipulateList();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
SolutionCS2323
uild/classes/solutioncs2323/RenderFileOfWebPage$1.class
package solutioncs2323;
synchronized class RenderFileOfWebPage$1 implements Runnable {
void RenderFileOfWebPage$1(RenderFileOfWebPage, javafx.scene.control.TextArea, SimpleBrowser);
public void run();
}
SolutionCS2323
uild/classes/solutioncs2323/RenderFileOfWebPage.class
package solutioncs2323;
public synchronized class RenderFileOfWebPage extends javafx.application.Application {
public void RenderFileOfWebPage();
public void start(javafx.stage.Stage) throws Exception;
public static void main(String[]);
}
SolutionCS2323
uild/classes/solutioncs2323/RenderHTML$1.class
package solutioncs2323;
synchronized class RenderHTML$1 implements Runnable {
void RenderHTML$1(RenderHTML, javafx.scene.control.TextArea, SimpleBrowser);
public void run();
}
SolutionCS2323
uild/classes/solutioncs2323/RenderHTML.class
package solutioncs2323;
public synchronized class RenderHTML extends javafx.application.Application {
public void RenderHTML();
public void start(javafx.stage.Stage) throws Exception;
public static void main(String[]);
}
SolutionCS2323
uild/classes/solutioncs2323/SimpleBrowser$1.class
package solutioncs2323;
synchronized class SimpleBrowser$1 implements javafx.beans.value.ChangeListener {
void SimpleBrowser$1(SimpleBrowser, Runnable);
public void changed(javafx.beans.value.ObservableValue, javafx.concu
ent.Worker$State, javafx.concu
ent.Worker$State);
}
SolutionCS2323
uild/classes/solutioncs2323/SimpleBrowser$2.class
package solutioncs2323;
synchronized class SimpleBrowser$2 {
static void ();
}
SolutionCS2323
uild/classes/solutioncs2323/SimpleBrowser.class
package solutioncs2323;
synchronized class SimpleBrowser extends javafx.scene.layout.Pane {
protected final javafx.scene.web.WebView webView;
protected final javafx.scene.web.WebEngine webEngine;
String labelProgressString;
void SimpleBrowser();
public javafx.scene.web.WebView getWebView();
public javafx.scene.web.WebEngine getEngine();
public String getLabelValue();
public SimpleBrowser load(String, Runnable);
public String getHTML();
}
SolutionCS2323
uild.xml

Builds, tests, and runs the project SolutionCS2323.


SolutionCS2323/dist/SolutionCS2323.html
Test page for SolutionCS2323
Webstart: click to launch this app as webstart


SolutionCS2323/dist/SolutionCS2323.ja
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Implementation-Title: SolutionCS2323
X-COMMENT: Main-Class will be added automatically by build
Implementation-Version: 1.0
Permissions: sandbox
Codebase: *
JavaFX-Version: 8.0
Class-Path:
Created-By: JavaFX Package
Implementation-Vendor: Ace
Main-Class: solutioncs2323.ManipulateList
solutioncs2323/Histogram.class
package solutioncs2323;
public synchronized class Histogram extends javafx.application.Application {
public void Histogram();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
solutioncs2323/ManipulateList.class
package solutioncs2323;
public synchronized class ManipulateList extends javafx.application.Application {
public void ManipulateList();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
solutioncs2323/RenderFileOfWebPage$1.class
package solutioncs2323;
synchronized class RenderFileOfWebPage$1 implements Runnable {
void RenderFileOfWebPage$1(RenderFileOfWebPage, javafx.scene.control.Label, SimpleBrowser, javafx.scene.control.TextArea);
public void run();
}
solutioncs2323/RenderFileOfWebPage.class
package solutioncs2323;
public synchronized class RenderFileOfWebPage extends javafx.application.Application {
public void RenderFileOfWebPage();
public void start(javafx.stage.Stage) throws Exception;
public static void main(String[]);
}
solutioncs2323/SimpleBrowser$1.class
package solutioncs2323;
synchronized class SimpleBrowser$1 implements javafx.beans.value.ChangeListener {
void SimpleBrowser$1(SimpleBrowser, Runnable);
public void changed(javafx.beans.value.ObservableValue, javafx.concu
ent.Worker$State, javafx.concu
ent.Worker$State);
}
solutioncs2323/SimpleBrowser$2.class
package solutioncs2323;
synchronized class SimpleBrowser$2 {
static void ();
}
solutioncs2323/SimpleBrowser.class
package solutioncs2323;
synchronized class SimpleBrowser extends javafx.scene.layout.Pane {
protected final javafx.scene.web.WebView webView;
protected final javafx.scene.web.WebEngine webEngine;
String labelProgressString;
void SimpleBrowser();
public javafx.scene.web.WebView getWebView();
public javafx.scene.web.WebEngine getEngine();
public String getLabelValue();
public SimpleBrowser load(String, Runnable);
public String getHTML();
}
SolutionCS2323/dist/SolutionCS2323.jnlp


SolutionCS2323
Ace
null











SolutionCS2323/dist/web-files/dtjava.js
*
* Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
**
The Java Deployment Toolkit is a utility to deploy Java content in
the
owser as applets or applications using the right version of Java.
If needed it can initiate an upgrade of user's system to install required
components of Java platform.
Note that some of the Deployment Toolkit methods may not be fully operational if
used before web page body is loaded (because DT native plugins could not be instantiated).
If you intend to use it before web page DOM tree is ready then dtjava.js
needs to be loaded inside the body element of the page and before use of other DT APIs.
@module java/deployment_toolkit
*
var dtjava = function() {
function notNull(o) {
return (o != undefined && o != null);
}
function isDef(fn) {
return (fn != null && typeof fn != "undefined");
}

eturn true if any of patterns from query list is found in the given string
function containsAny(lst, str) {
for (var q = 0; q < lst.length; q++) {
if (str.indexOf(lst[q]) != -1) {
return true;
}
}
return false;
}
/* Location of static web content - images, javascript files. *
var jscodebase = (function () {