I am currently learning about GUI's and have created one that has four JButtons (right,left,up,down),the component moves 10 px in the directiion of the button that is clicked.
I would like to show the current coordinates in the GUI as it is moved with the buttons.
How would i go about that? Which component or method can i use for that?
Thanks for the quick reply! I should have mentioned ia am using getX(), and getY() to find the current position of the component, i need to know how i can have those coordinates show within the GUI itself.