I'm trying to create a new Object based on another one.
public Case(Case datCase){
this.lstColors = (ArrayList<LineColor>) datCase.lstColors.clone();
this.lstCases = (ArrayList<Case>) datCase.lstCases.clone();
//this = (Case) datCase.clone();
}
Of course i'm using the clone methods on every Object that i'm using (Not in the internal Objects like LineColor) but, it seems to not be cloning (The objects still change when the original changes)
I'm kind of newbie on this so please, help
PD: The complete project is here https://github.com/GunB/Mixing-Colours