Tuesday 15 January 2013

java - JavaFX Get Koordinates from Toggle Button -



java - JavaFX Get Koordinates from Toggle Button -

i have togglebutton in javafx. want know on coordinate togglebutton is. there function delivers values like:

getcoordinates or that?

thank help :)

depending on whether want know position a) on screen, b) in scene, c) in parent node, utilize node's methods localtoscreen, localtoscene or localtoparent, respectively.

example

to top left corner of toggle button in scene, do

point2d pos = togglebutton.localtoscene(0.0, 0.0);

java javafx components togglebutton

No comments:

Post a Comment