private void jMenu1ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jMenu1ActionPerformed // TODO add your handling code here: About ab = new About(); Dimension screenSize = this.getSize(); Dimension frameSize = ab.getSize(); ab.setLocation( (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); ab.setVisible(true); } // GEN-LAST:event_jMenu1ActionPerformed