centerFrame
Center a frame on the screen.
centerFrame(frame,wp,hp)
Inputs
frame An object of the type javax.swing.JFrame or its subclass.
wp The percent of screen width to be occupied by the frame width.
hp The percent of screen height to be occupied by the frame height.


Description
The functions sets the width and height of the frame to be the given fractions of the screen width and height, and positions the center of the frame at the center of the screen.