How to set the screen posistion of a jframe code example Example: open jframe in center of screen add this after setbounds setLocationRelativeTo(null);