//How to center your form (JFrame) in the form's constructor after initComponents public frmMain() { initComponents(); this.setLocationRelativeTo(null); }