private void jButton2KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton2KeyReleased
    if (evt.getKeyChar() == evt.VK_ENTER) {
        i++;
        if (i == 1) {
            jButton2.doClick();
        } else if (i == 2) {
            i = 0;
        }

    }
}//GEN-LAST:event_jButton2KeyReleased