String mouse = new String(getMouseX(), getMouseY());
public void paintFrame(Graphics g) {
g.drawString("mouse", 100,100);
}
Basically, I'm trying to display the X and Y coordinates of the mouse on the screen when the program is executed. I know this is wrong, but could someone point me in the right direction? I'm fairly new to Java and am still getting used to writing code.