Mohamed Sanaulla wrote:You are setting the startX and startY and not exactly the layoutX and layoutY which are properties of the node. So layoutX and layoutY are 0.0.
I see, is there any mapping from layoutXY to startXY and vice versa? Where can I read and learn about the relation between them?
You can use the API documentation http://download.oracle.com/javafx/2.0/api/index.html Alternatively you can try setting the layoutX and layoutY of the line.
startX and startY are the properties specific to the Line, but as you can see in the API layoutX and layoutY are the properties of Node and are inherited by all the components.