private void btnEnterRecordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEnterRecordActionPerformed
      // not quite sure is this is right or not
        foundIndex = NOT_FOUND;

        partNo = this.txtNewProdNo.getText();
        partDesc = this.txtNewProdDesc.getText();
        try {
            partPrice = Double.parseDouble(this.txtNewProdPrice.getText());
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this,
                    "Sorry, the price entry must be a whole or floating point number only.\n",
                    "Number Format Error", JOptionPane.WARNING_MESSAGE);
            return;
        }

        if (emptyRow > 10) {
            JOptionPane.showMessageDialog(this,
                    "Sorry, you have reach the maximum of 10 items.\n"
                    + "No more items can be saved.", "Maximum Reached", JOptionPane.WARNING_MESSAGE);

        } else if (partNo.length() == 0 || partDesc.length() == 0
                || this.txtNewProdPrice.getText().length() == 0) {
            JOptionPane.showMessageDialog(this,
                    "Sorry, you must complete all fields. Please try again.",
                    "Incomplete Part Entry", JOptionPane.WARNING_MESSAGE);
            this.txtNewProdNo.requestFocus();

        } else {
            partNums[emptyRow] = partNo;
            partDescs[emptyRow] = partDesc;
            partPrices[emptyRow] = partPrice;
            this.emptyRow += 1;
        }

        clearEntryFields();
        this.txtNewProdNo.requestFocus();
}//GEN-LAST:event_btnEnterRecordActionPerformed