Bouncing-Ball Simply explains 2D Java graphics and the principle of animation. Youtube video tutorial here JRE version 11 or later.