Start the implementation of inputs gathering and the comparator code (still buggy...
[Persons_Comparator.git] / src / FirstnameView.java
index b7b85680290a51ca5c6c28e21bf1c92db3cdd3fe..cd253e502651f9b11035ba65ab7ed0b21eb83bdd 100644 (file)
@@ -10,7 +10,7 @@ public class FirstnameView extends JPanel {
         this.label = new JLabel();
         this.label.setText("Firstname");
         this.textField = new JTextField(length);
-        this.textField.setText(firstnameObj.getFirstname());
+        this.textField.setText(this.getFirstnameObj().getFirstname());
         add(label);
         add(textField);
     }
@@ -22,4 +22,8 @@ public class FirstnameView extends JPanel {
     public void setFirstnameObj(Firstname firstnameObj) {
         this.firstnameObj = firstnameObj;
     }
+
+    public JTextField getTextField() {
+        return textField;
+    }
 }