Download source code of JFrame in the center of the screen (Hand Coded JFrame Example). On clicking on Create New Frame Button will create a new Centered JFrame. To compile and run the file use javac JFrameOnCenter.java to Compile java JFrameOnCenter to…