Answer To: Microsoft Word - Assignment 3.docx COMP-1502 ASSIGNMENT #3 Dept. of Mathematics & Computing Mount...
Mohd answered on Apr 06 2021
Updated Solution/Assignment 3/build.xml
Builds, tests, and runs the project Assignment 3.
Updated Solution/Assignment 3/build/built-jar.properties
#Thu, 08 Apr 2021 23:06:26 +0530
C\:\\Users\\Mohd\ Lucky\\Documents\\NetBeansProjects\\Assignment\ 3=
Updated Solution/Assignment 3/build/classes/.netbeans_automatic_build
Updated Solution/Assignment 3/build/classes/.netbeans_update_resources
Updated Solution/Assignment 3/build/classes/mru/tsc/application/Main.class
package mru.tsc.application;
public synchronized class Main extends javafx.application.Application {
public void Main();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/Animal.class
package mru.tsc.controller;
public synchronized class Animal extends mru.tsc.model.Toy {
char size;
void Animal(String, String, String, String, int, int, char);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/BoardGame.class
package mru.tsc.controller;
public synchronized class BoardGame extends mru.tsc.model.Toy {
String designer;
int minPlayers;
int maxPlayers;
void BoardGame(String, String, String, String, int, int, int, int, String);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/check.txt
2835360879;Cow;
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/Figure.class
package mru.tsc.controller;
public synchronized class Figure extends mru.tsc.model.Toy {
char classify;
void Figure(String, String, String, String, int, int, char);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/FXMLDocumentController.class
package mru.tsc.controller;
public synchronized class FXMLDocumentController implements javafx.fxml.Initializable {
ShopController shop;
private javafx.scene.control.RadioButton serialNumberHome;
private javafx.scene.control.RadioButton nameHome;
private javafx.scene.control.RadioButton typeHome;
private javafx.scene.control.TextField serialTextFieldHome;
private javafx.scene.control.TextField nameTextFieldHome;
private javafx.scene.control.TextField typeTextFieldHome;
private javafx.scene.control.TextField serialNumberTextFieldRemove;
private javafx.scene.control.ListView listViewHome;
private javafx.scene.control.ListView listViewRemove;
public void FXMLDocumentController();
private void handleSerialNumberHome(javafx.event.ActionEvent);
private void handleNameHome(javafx.event.ActionEvent);
private void handleTypeHome(javafx.event.ActionEvent);
private void handleSearchHome(javafx.event.ActionEvent);
private void handleClearHome(javafx.event.ActionEvent);
private void handleBuyHome(javafx.event.ActionEvent);
private void handleRemoveToy(javafx.event.ActionEvent);
public void initialize(java.net.URL, java.util.ResourceBundle);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/Puzzle.class
package mru.tsc.controller;
public synchronized class Puzzle extends mru.tsc.model.Toy {
String type;
void Puzzle(String, String, String, String, int, int, String);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/ShopController.class
package mru.tsc.controller;
public synchronized class ShopController {
java.util.ArrayList AList;
java.util.ArrayList FList;
java.util.ArrayList PList;
java.util.ArrayList BGList;
java.util.ArrayList List;
public void ShopController();
public void findRemove(String);
public void addToy(String);
public void displayName(String);
public void displayType(String);
public void purchasedToy(int);
public void displaysn(String);
public void readFile();
public void writeFile();
}
Updated Solution/Assignment 3/build/classes/mru/tsc/model/Toy.class
package mru.tsc.model;
public synchronized class Toy {
private String sn;
private String name;
private String brand;
private String price;
private int count;
private int age;
public void Toy();
public String getSn();
public void setSn(String);
public String getName();
public void setName(String);
public String getBrand();
public void setBrand(String);
public String getPrice();
public void setPrice(String);
public int getCount();
public void setCount(int);
public int getAge();
public void setAge(int);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/view/application.css
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
.root {
-fx-background-color: dimgrey;
-fx-font-size: 14pt;
}
Updated Solution/Assignment 3/build/classes/mru/tsc/view/myGUI.class
package mru.tsc.view;
public synchronized class myGUI {
public void myGUI(javafx.stage.Stage);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/view/ToyView.fxml
Updated Solution/Assignment 3/dist/Assignment_3.jar
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.7
Created-By: 1.8.0_261-b12 (Oracle Corporation)
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Main-Class: mru.tsc.application.Main
mru/tsc/application/Main.class
package mru.tsc.application;
public synchronized class Main extends javafx.application.Application {
public void Main();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
mru/tsc/controller/Animal.class
package mru.tsc.controller;
public synchronized class Animal extends mru.tsc.model.Toy {
char size;
void Animal(String, String, String, String, int, int, char);
}
mru/tsc/controller/BoardGame.class
package mru.tsc.controller;
public synchronized class BoardGame extends mru.tsc.model.Toy {
String designer;
int minPlayers;
int maxPlayers;
void BoardGame(String, String, String, String, int, int, int, int, String);
}
mru/tsc/controller/FXMLDocumentController.class
package mru.tsc.controller;
public synchronized class FXMLDocumentController implements javafx.fxml.Initializable {
ShopController shop;
private javafx.scene.control.RadioButton serialNumberHome;
private javafx.scene.control.RadioButton nameHome;
private javafx.scene.control.RadioButton typeHome;
private javafx.scene.control.TextField serialTextFieldHome;
private javafx.scene.control.TextField nameTextFieldHome;
private javafx.scene.control.TextField typeTextFieldHome;
private javafx.scene.control.TextField serialNumberTextFieldRemove;
private javafx.scene.control.ListView listViewHome;
private javafx.scene.control.ListView listViewRemove;
public void FXMLDocumentController();
private void handleSerialNumberHome(javafx.event.ActionEvent);
private void handleNameHome(javafx.event.ActionEvent);
private void handleTypeHome(javafx.event.ActionEvent);
private void handleSearchHome(javafx.event.ActionEvent);
private void handleClearHome(javafx.event.ActionEvent);
private void handleBuyHome(javafx.event.ActionEvent);
private void handleRemoveToy(javafx.event.ActionEvent);
public void initialize(java.net.URL, java.util.ResourceBundle);
}
mru/tsc/controller/Figure.class
package mru.tsc.controller;
public synchronized class Figure extends mru.tsc.model.Toy {
char classify;
void Figure(String, String, String, String, int, int, char);
}
mru/tsc/controller/Puzzle.class
package mru.tsc.controller;
public synchronized class Puzzle extends mru.tsc.model.Toy {
String type;
void Puzzle(String, String, String, String, int, int, String);
}
mru/tsc/controller/ShopController.class
package mru.tsc.controller;
public synchronized class ShopController {
java.util.ArrayList AList;
java.util.ArrayList FList;
java.util.ArrayList PList;
java.util.ArrayList BGList;
java.util.ArrayList List;
public void ShopController();
public void findRemove(String);
public void addToy(String);
public void displayName(String);
public void displayType(String);
public void purchasedToy(int);
public void displaysn(String);
public void readFile();
public void writeFile();
}
mru/tsc/controller/check.txt
2835360879;Cow;
mru/tsc/model/Toy.class
package mru.tsc.model;
public synchronized class Toy {
private String sn;
private String name;
private String brand;
private String price;
private int count;
private int age;
public void Toy();
public String getSn();
public void setSn(String);
public String getName();
public void setName(String);
public String getBrand();
public void setBrand(String);
public String getPrice();
public void setPrice(String);
public int getCount();
public void setCount(int);
public int getAge();
public void setAge(int);
}
mru/tsc/view/ToyView.fxml
mru/tsc/view/application.css
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
.root {
-fx-background-color: dimgrey;
-fx-font-size: 14pt;
}
mru/tsc/view/myGUI.class
package mru.tsc.view;
public synchronized class myGUI {
public void myGUI(javafx.stage.Stage);
}
Updated Solution/Assignment 3/dist/README.TXT
========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "Assignment_3.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.
Updated Solution/Assignment 3/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Updated Solution/Assignment 3/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
...