CodePudding user response:
Set the setsize size, and then set shows visible set visibleCodePudding user response:
To set up the window size and an enclosing setSize (width, Height);Then add a enclosing setLocationRelativeTo (null); Put the window into the center of screen