3 public class FirstnameView
extends JPanel
{
4 private Firstname firstnameObj
;
5 private JTextField textField
;
8 FirstnameView(int length
, Firstname firstnameObj
) {
9 setFirstnameObj(firstnameObj
);
10 this.label
= new JLabel();
11 this.label
.setText("Firstname");
12 this.textField
= new JTextField(length
);
13 this.textField
.setText(this.getFirstnameObj().getFirstname());
18 public Firstname
getFirstnameObj() {
22 public void setFirstnameObj(Firstname firstnameObj
) {
23 this.firstnameObj
= firstnameObj
;
26 public JTextField
getTextField() {