Rob Prime wrote:Also, the resistance you're printing is the local variable, not the instance variable of your DCR instance.
Santhosh Puttu wrote:oh yes. Without creating object we cannot call non static method......
I think this should work..
Rob Prime wrote:
chop ficaro wrote:
I really suggest you name your variables differently. Never use a class name as variable name. It makes your code confusing to read; when I first glanced over your code I thought I saw a few static calls:
Anyway, I see one problem with your BackgroundPanel. It has no children, so its size will be 0x0. Try giving it a preferred size.