I have a problem to solve.I want to draw squares and lines connecting them.The number of squares is only known at runtime.How can it be done.if someone has some code like this,pls help.I am able to draw and put lines between two squares,i dont know what to do for doing it dynamically