![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_4:3%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 - How to get the location of a point on a Canvas outside of the JFrame / JPanel? - Stack Overflow java - How to get the location of a point on a Canvas outside of the JFrame / JPanel? - Stack Overflow](https://i.stack.imgur.com/cGAyE.png)
java - How to get the location of a point on a Canvas outside of the JFrame / JPanel? - Stack Overflow
![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
![Creating the Demo Application (Step 3) (The Java™ Tutorials > Creating a GUI With Swing > Performing Custom Painting) Creating the Demo Application (Step 3) (The Java™ Tutorials > Creating a GUI With Swing > Performing Custom Painting)](https://docs.oracle.com/javase/tutorial/figures/uiswing/painting/swing3.png)
Creating the Demo Application (Step 3) (The Java™ Tutorials > Creating a GUI With Swing > Performing Custom Painting)
![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_16:9%2Cc_fill%2Ccs_srgb%2Cfl_progressive%2Cq_auto:eco%2Cw_1200/MTc2MjcwNzI0Nzk5OTk3MTE4/java-2d-tutorial-ii-jframe-jpanel-graphics-2d.jpg)