![Java 2D Tutorial II--JFrame, JPanel, Coordinate System, Custom Colors, Gradient Paint, and Testing Code - HubPages Java 2D Tutorial II--JFrame, JPanel, Coordinate System, Custom Colors, Gradient Paint, and Testing Code - HubPages](https://images.saymedia-content.com/.image/t_share/MTc2MjcwNzI0Nzk5OTk3MTE4/java-2d-tutorial-ii-jframe-jpanel-graphics-2d.jpg)
Java 2D Tutorial II--JFrame, JPanel, Coordinate System, Custom Colors, Gradient Paint, and Testing Code - HubPages
![How to Write a Mouse-Motion Listener (The Java™ Tutorials > Creating a GUI With Swing > Writing Event Listeners) How to Write a Mouse-Motion Listener (The Java™ Tutorials > Creating a GUI With Swing > Writing Event Listeners)](https://docs.oracle.com/javase/tutorial/figures/uiswing/events/MouseMotionEventDemo.png)
How to Write a Mouse-Motion Listener (The Java™ Tutorials > Creating a GUI With Swing > Writing Event Listeners)
![Java 2D Tutorial II--JFrame, JPanel, Coordinate System, Custom Colors, Gradient Paint, and Testing Code - HubPages Java 2D Tutorial II--JFrame, JPanel, Coordinate System, Custom Colors, Gradient Paint, and Testing Code - HubPages](https://images.saymedia-content.com/.image/ar_1:1%2Cc_fill%2Ccs_srgb%2Cfl_progressive%2Cq_auto:eco%2Cw_1200/MTc2MjcwNzI0Nzk5OTk3MTE4/java-2d-tutorial-ii-jframe-jpanel-graphics-2d.jpg)
Java 2D Tutorial II--JFrame, JPanel, Coordinate System, Custom Colors, Gradient Paint, and Testing Code - HubPages
![java - Getting the X and Y position of the mouse when it is clicked on the image in JLabel - Stack Overflow java - Getting the X and Y position of the mouse when it is clicked on the image in JLabel - Stack Overflow](https://i.stack.imgur.com/QsSEU.png)