This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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.