X-Git-Url: https://git.piment-noir.org/?p=Persons_Comparator.git;a=blobdiff_plain;f=src%2FFirstnameView.java;h=3ff29770357320cdeaff4b132cbc0208c6878874;hp=e9c387baa50ec142367facc28972e5c83820ba5c;hb=883508cad71557d375580ce52a4e093f131405db;hpb=089fcbfccd75b77daf843b22e128beeee1d1dc07 diff --git a/src/FirstnameView.java b/src/FirstnameView.java index e9c387b..3ff2977 100644 --- a/src/FirstnameView.java +++ b/src/FirstnameView.java @@ -9,6 +9,9 @@ public class FirstnameView extends JComponent { this.label = new JLabel(); this.label.setText("Firstname"); this.textField = new JTextField(length); + if (firstnameObj != null) { + this.textField.setText(this.firstnameObj.getFirstname()); + } add(label); add(textField); }