diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..e32eceb
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..1bb7f2b
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..ad8ec59
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,395 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ step
+ entery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1521852921489
+
+
+ 1521852921489
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No facets are configured
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 9.0
+
+
+
+
+
+
+
+
+
+
+
+ Barcode_Reader
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Barcode_Reader.iml b/Barcode_Reader.iml
new file mode 100644
index 0000000..bae38e1
--- /dev/null
+++ b/Barcode_Reader.iml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/data.txt b/data.txt
new file mode 100644
index 0000000..671922c
--- /dev/null
+++ b/data.txt
@@ -0,0 +1,6 @@
+0
+testPackage
+TestData
+TestDataReceived
+1234
+Step B
diff --git a/out/production/Barcode_Reader/BarCode.class b/out/production/Barcode_Reader/BarCode.class
new file mode 100644
index 0000000..8fd39e5
Binary files /dev/null and b/out/production/Barcode_Reader/BarCode.class differ
diff --git a/out/production/Barcode_Reader/Data.class b/out/production/Barcode_Reader/Data.class
new file mode 100644
index 0000000..8c2a3bf
Binary files /dev/null and b/out/production/Barcode_Reader/Data.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$1.class b/out/production/Barcode_Reader/Mainwindow$1.class
new file mode 100644
index 0000000..71f9cb5
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$1.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$2.class b/out/production/Barcode_Reader/Mainwindow$2.class
new file mode 100644
index 0000000..0d34c1b
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$2.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$3.class b/out/production/Barcode_Reader/Mainwindow$3.class
new file mode 100644
index 0000000..6e7c5b4
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$3.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$4.class b/out/production/Barcode_Reader/Mainwindow$4.class
new file mode 100644
index 0000000..793e562
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$4.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$5.class b/out/production/Barcode_Reader/Mainwindow$5.class
new file mode 100644
index 0000000..ee161b2
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$5.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$6.class b/out/production/Barcode_Reader/Mainwindow$6.class
new file mode 100644
index 0000000..cdf4e5f
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$6.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow$7.class b/out/production/Barcode_Reader/Mainwindow$7.class
new file mode 100644
index 0000000..ecf6532
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow$7.class differ
diff --git a/out/production/Barcode_Reader/Mainwindow.class b/out/production/Barcode_Reader/Mainwindow.class
new file mode 100644
index 0000000..356ae19
Binary files /dev/null and b/out/production/Barcode_Reader/Mainwindow.class differ
diff --git a/src/BarCode.java b/src/BarCode.java
new file mode 100644
index 0000000..ad15886
--- /dev/null
+++ b/src/BarCode.java
@@ -0,0 +1,59 @@
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.util.ArrayList;
+import java.util.Scanner;
+
+
+public class BarCode {
+ private ArrayList tokens;
+
+ public ArrayList getTokens() {
+ return tokens;
+ }
+
+ public void setTokens(ArrayList tokens) {
+ this.tokens = tokens;
+ }
+
+ BarCode(File input) throws FileNotFoundException{
+ tokens = new ArrayList();
+ loadFromFile(input);
+ System.out.println("the data already in the list");
+ }
+
+ public void loadFromFile(File inputFile) throws FileNotFoundException{
+ if(inputFile.canRead()){
+ Scanner reader = new Scanner(inputFile);
+ while(reader.hasNext()){
+ Data temp = new Data();
+ temp.setGeneratedNumber(Integer.parseInt(reader.nextLine()));
+ temp.setPackageData(reader.nextLine());
+ temp.setDataSent(reader.nextLine());
+ temp.setRecievedData(reader.nextLine());
+ temp.setIDNumber(Integer.parseInt(reader.nextLine()));
+ temp.setChoice(reader.nextLine());
+ tokens.add(temp);
+ }
+ System.out.println(1);
+ reader.close();
+ }
+ else{
+ System.out.println(0);
+ tokens = null;
+ }
+ }
+ public int FindWithGeneratedCode(int number){
+ int i = 0;
+ while(i < tokens.size() ){
+ if(tokens.get(i).getGeneratedNumber() == number){
+ return i;
+ }
+ i++;
+ }
+ return -1;
+ }
+
+ public void addToList(Data temp){
+ tokens.add(temp);
+ }
+}
\ No newline at end of file
diff --git a/src/Data.java b/src/Data.java
new file mode 100644
index 0000000..1ab106f
--- /dev/null
+++ b/src/Data.java
@@ -0,0 +1,46 @@
+public class Data {
+
+ private int generatedNumber;
+ private String packageData;
+ private String dataSent;
+ private String recievedData;
+ private int IDNumber;
+ private String choice;
+
+ public int getGeneratedNumber() {
+ return generatedNumber;
+ }
+ public void setGeneratedNumber(int generatedNumber) {
+ this.generatedNumber = generatedNumber;
+ }
+ public String getPackageData() {
+ return packageData;
+ }
+ public void setPackageData(String packageData) {
+ this.packageData = packageData;
+ }
+ public String getDataSent() {
+ return dataSent;
+ }
+ public void setDataSent(String dataSent) {
+ this.dataSent = dataSent;
+ }
+ public String getRecievedData() {
+ return recievedData;
+ }
+ public void setRecievedData(String recievedData) {
+ this.recievedData = recievedData;
+ }
+ public int getIDNumber() {
+ return IDNumber;
+ }
+ public void setIDNumber(int iDNumber) {
+ IDNumber = iDNumber;
+ }
+ public String getChoice() {
+ return choice;
+ }
+ public void setChoice(String choice) {
+ this.choice = choice;
+ }
+}
\ No newline at end of file
diff --git a/src/Mainwindow.java b/src/Mainwindow.java
index d778104..af05360 100644
--- a/src/Mainwindow.java
+++ b/src/Mainwindow.java
@@ -153,7 +153,7 @@ public void actionPerformed(ActionEvent e) {
rdbtnStepB.setBounds(55, 247, 109, 23);
panel_3.add(rdbtnStepB);
- rdbtnStepC = new JRadioButton("step B");
+ rdbtnStepC = new JRadioButton("step C");
rdbtnStepC.setBounds(55, 273, 109, 23);
panel_3.add(rdbtnStepC);
@@ -224,7 +224,7 @@ public void actionPerformed(ActionEvent e) {
barCodeText.setText("");
} catch (Exception ex) {
// this mean that the input was not a number
- System.out.println("wrong entery");
+ System.out.println("wrong entry");
barCodeText.setText("");
}