WHich i already sent you in the previous mail. InnlevertEiendel * There is no class created with above name. * * * *First class:* package com;
public class A { /** * @param args */ InnlevertEiendel inner; public InnlevertEiendel getInnlevEDUpdate(){ return inner; } public void setInnlevEDUpdate(InnlevertEiendel innlevEDUpdate){ this.inner = innlevEDUpdate; } public void Onclick(){ setInnlevEDUpdate(inner); } } *second class:* package com; public class B { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub InnlevertEiendel innlevertEiendel = new InnlevertEiendel(); innlevertEiendel = new A().getInnlevEDUpdate(); } } *If you want to check there should be a variable or method in the below class* package com; public class InnlevertEiendel { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub } } 2011/7/26 Rafał Laczek <rafal_lac...@wp.pl> > Can you please advise how to solve it. innlevertEiendel in class B is null > > > > Class A{ > > public InnlevertEiendel getInnlevEDUpdate(){ > > return innlevEDUpdate; > > } > > > > public void setInnlevEDUpdate(InnlevertEiendel innlevEDUpdate){ > > this.innlevEDUpdate = innlevEDUpdate; > > } > > > > Onclick(){ > > setInnlevEDUpdate(innlevEDUpdate){ > > } > > > > ClassB(){ > > InnlevertEiendel innlevertEiendel = new InnlevertEiendel(); > > innlevertEiendel = new ClassA().getInnlevEDUpdate(); > > } > > > > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -- Thanks &Regards Shivakumar.G -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en