i made simple game by java , it’s about “tennis background” and “tennis ball” , and the ball is randomally move automatically , my game consist of two file , 1st file fore Jpanel , and 2nd file for JFrame , my question is : i need to control of “stopping and resuming” the ball by clicking the mouse ,