You can use mouse event with any object that allows you to add the listener (for example anything that extends Component - JPanel, JButton, etc...) I'm not sure what you are asking about with regards...