Don't make it rocket science.
You know the number of dogs and therefor the number of values to be displayed.
So make your GUI dynamically out of that:
if (cbName.isSelected() == true) {
foreach (Dog oDog: oDogs){
if(null != oDog.getName()){
JCheckBox oCheckbox = new JCheckBox(oDog.getName());
}
}
}