What's the code to make the sprite change when you put your cursor on it? For example, the 'Play' button in the lobby/login interface on RuneScape. I already know that it has something to do with mouseEntered in the applet class. But how can I make the close buttons change when your cursor is on it?
Code:
addCloseButton(15002, "X.png", 275, 36, "Close Window");
This is the close button/sprite that I want when your cursor isn't on it
Code:
addCloseButton(15002, "Xclose.png", 275, 36, "Close Window");
This is the close button I want when your cursor is on it.