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

Microsoft Word - Document3 Assignment-6 [Marks 20] Create a model class for a Employee that will contain a constructor and a toString() method as shown in the UML: Inside the constructor throw...

1 answer below »
Microsoft Word - Document3
Assignment-6 [Marks 20]

Create a model class for a Employee that will contain a constructor and a toString() method as
shown in the UML:



Inside the constructor throw exceptions for any passed parameter that does not make sense
and should be rejected. You must use your judgement on what values do and don't make sense.

The Employee class is to be used as model in a JavaFX application. That application will contain
the following UI:



The large box on the right is ListView. Create the UI for this program. You can use .fxml,
SceneBuilder, java code, or any other tool you wish.

Write the controller class. Your controller class must use a List that holds objects of Employee
type (generic type). The user can enter the data in the text fields and press the Save button to
add them in the List. Your program must catch exception thrown by the Employee constructor
and display a useful message in a Dialog box. You should also update the contents of the
listview. When the user presses the "Sort" button, you should sort the data in the listview. The
natural ordering for an employee is to sort by the name attribute.
Answered Same Day Apr 22, 2021

Solution

Ankit answered on Apr 22 2021
151 Votes
GUIDemo-maste
uild.xml

Builds, tests, and runs the project GUIDemo.


GUIDemo-maste
manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
GUIDemo-maste
nbproject
uild-impl.xml
















































































































































































































Must set src.di
Must set test.src.di
Must set build.di
Must set dist.di
Must set build.classes.di
Must set dist.javadoc.di
Must set build.test.classes.di
Must set build.test.results.di
Must set build.classes.excludes
Must set dist.ja




































































































Must set javac.includes
































































































































No tests executed.























































































































































































































































Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in profiler.info.jvmargs.agent





























































































































































































































Must select some files in the IDE or set javac.includes













































To run this application from the command line without Ant, try:

java -jar "${dist.jar.resolved}"










































Must select one file in the IDE or set run.class



Must select one file in the IDE or set run.class






















Must select one file in the IDE or set debug.class




Must select one file in the IDE or set debug.class




Must set fix.includes









This target only works when run from inside the NetBeans IDE.








Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans IDE.








This target only works when run from inside the NetBeans IDE.












This target only works when run from inside the NetBeans IDE.



































Must select one file in the IDE or set run.class





Must select some files in the IDE or set test.includes




Must select one file in the IDE or set run.class




Must select one file in the IDE or set applet.url






































































Must select some files in the IDE or set javac.includes



















Some tests failed; see details above.








Must select some files in the IDE or set test.includes



Some tests failed; see details above.



Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method



Some tests failed; see details above.




Must select one file in the IDE or set test.class



Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method













Must select one file in the IDE or set applet.url








Must select one file in the IDE or set applet.url




















































GUIDemo-maste
nbproject/configs/Run_as_WebStart.properties
# Do not modify this property in this configuration. It can be re-generated.
$label=Run as WebStart
GUIDemo-maste
nbproject/configs/Run_in_Browser.properties
# Do not modify this property in this configuration. It can be re-generated.
$label=Run in Browse
GUIDemo-maste
nbproject/genfiles.properties
uild.xml.data.CRC32=9a44ee6a
uild.xml.script.CRC32=1d878715
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject
uild-impl.xml.data.CRC32=9a44ee6a
nbproject
uild-impl.xml.script.CRC32=88e0ad64
nbproject
[email protected]
GUIDemo-maste
nbproject/jfx-impl.xml

JavaFX-specific Ant calls













































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































${cssfileslist}





















self.addMappedName(
(source.indexOf("jfxrt.jar") >= 0) ||
(source.indexOf("deploy.jar") >= 0) ||
(source.indexOf("javaws.jar") >= 0) ||
(source.indexOf("plugin.jar") >= 0)
? "" : source
);







function prefix(s, len) {
if(s == null || len <= 0 || s.length == 0) {
return new String("");
}
return new String(s.substr(0, len));
}
function defined(s) {
return (s != null) && (s != "null") && (s.length > 0);
}
var pathConvert = project.createTask("pathconvert");
pathConvert.setProperty("run.and.lib.classpath");
var classPath = new String(project.getProperty("run.classpath.without.build.classes.and.dist.dir"));
var fileSeparator = new String(project.getProperty("file.separator"));
if(defined(classPath)) {
var classPathCopy = pathConvert.createPath();
classPathCopy.setPath(classPath);
var pathA
ay;
if(classPath.indexOf(";") != -1) {
pathA
ay = classPath.split(";");
} else {
pathA
ay = classPath.split(":");
}
var added = new java.lang.StringBuilder();
for (var i = 0; i < pathA
ay.length; i++) {
var index = pathA
ay[i].lastIndexOf(fileSeparator);
if (index >= 0) {
var onePath = prefix(pathA
ay[i], index+1).concat("lib");
var oneDir = new java.io.File(onePath);
if(oneDir.exists()) {
var fs = project.createDataType( "fileset" );
fs.setDir( oneDir );
fs.setIncludes("*.jar");
var ds = fs.getDirectoryScanner(project);
var srcFiles = ds.getIncludedFiles();
for (var j = 0; j < srcFiles.length; j++) {
if(classPath.indexOf( srcFiles[j] ) == -1 && added.indexOf( srcFiles[j] ) == -1) {
var path = pathConvert.createPath();
path.setPath( onePath.concat(fileSeparator).concat(srcFiles[j]) );
added.append( srcFiles[j] );
}
}
}
}
}
}
pathConvert.perform();










































var dir = new String(project.getProperty("pp_rebase_dir"));
var fDir = new java.io.File(dir);
if( fDir.exists() ) {
var callTask = project.createTask("antcall");
callTask.setTarget("-rebase-libs-macro-call");
var param = callTask.createParam();
param.setName("jar.file.to.rebase");
var includes = new String(project.getProperty("pp_rebase_fs"));
var fs = project.createDataType("fileset");
fs.setDir( fDir );
fs.setIncludes(includes);
var ds = fs.getDirectoryScanner(project);
var srcFiles = ds.getIncludedFiles();
for (var i = 0; i < srcFiles.length; i++) {
param.setValue(dir.concat("${file.separator}").concat(srcFiles[i]));
callTask.perform();
}
}



























var UTF_8 = "UTF-8";
var ATTR_CLASS_PATH = "Class-Path";
var ATTR_CLASS_PATH_FX = "JavaFX-Class-Path";
function endsWith(s, suffix) {
var i = s.lastIndexOf(suffix);
return (i != -1) && (i == (s.length - suffix.length));
}
function isSigned(manifest) {
var sections = manifest.getSectionNames();
while(sections.hasMoreElements()) {
var sectionname = new String(sections.nextElement());
var section = manifest.getSection(sectionname);
if(section != null) {
var sectionKeys = section.getAttributeKeys();
while (sectionKeys.hasMoreElements()) {
var element = new String(sectionKeys.nextElement());
if (endsWith(element, "-Digest") || endsWith(element, "-digest")) {
return true;
}
}
}
}
return false;
}
var src = new String(project.getProperty("manifest.file.temp"));
var srf = new java.io.File(src);
var manifest;
try {
var fis = new java.io.FileInputStream(srf);
try {
var isr = new java.io.InputStreamReader(fis, UTF_8);
try {
manifest = new org.apache.tools.ant.taskdefs.Manifest(isr);
} finally {
isr.close();
}
} finally {
fis.close();
}
} catch(e) {
manifest = null;
}
if(manifest != null) {
if(isSigned(manifest))...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here