```
Box buttonBox = new Box(BoxLayout.Y_AXIS);  
Name1 name2 = new Name1();  

```

there are two Name1s 

```
checkboxList = new ArrayList<JCheckBox>();  
name2 = new Name1();  

```

there is only one Name1 

It works, but why?