In Java, to display the coordinates of a point on a graphical user interface (GUI), which of the following methods is commonly used?
A. Using the getLocation() method of the Component class to retrieve coordinates
B. Using the printCoordinates() method of the Graphics class
C. Directly accessing the coordinates through the Point class constructor
D. Using the getBounds() method of the Component class to get the coordinates of the bounding rectangle