3 public class FirstnameView
extends JComponent
{
4 private Firstname firstnameObj
;
5 private JTextField textField
;
8 FirstnameView(int length
) {
9 this.label
= new JLabel();
10 this.label
.setText("Firstname");
11 this.textField
= new JTextField(length
);
16 public Firstname
getFirstnameObj() {
20 public void setFirstnameObj(Firstname firstnameObj
) {
21 this.firstnameObj
= firstnameObj
;