private void updateCustomerDisplay() {
        try {
            String lineone = Settings.get("lineDisp").toString();
            String linetwo = Settings.get("lineDisp2").toString();
            // Get the selectedRow or the last Row.
            int row = slsm.getSelectedIndex();
            if(row == -1) {
                row = table.getRowCount();
                if (row == 0) {
                    ldg.updateDisplay(lineone + linetwo);
                    return;
                }
            }
            String selectedProductName = model.getValueAt(row, 1).toString();
            int selectedQty = getQty(row);
            lineone = selectedProductName + " * " + selectedQty;

            // Make it exactly 20 chars
            if(lineone.length() > 20 ) {
                // Work out amount to trim the name by
                int excessAmount = lineone.length() - 20;
                String mandatoryStr = " * " + selectedQty;
                int amountToTrim = selectedProductName.length() - excessAmount;
                selectedProductName = selectedProductName.substring(0, amountToTrim);
                lineone = selectedProductName + mandatoryStr;
            } else if (lineone.length() < 20) {
                // Find out amount to add
                int amountToAdd = 20 - lineone.length();
                String mandatoryStr = " * " + selectedQty;
                lineone = selectedProductName;
                // Lets just add the spaces
                for(int i = 0; i < amountToAdd; i++) {
                    lineone = new StringBuffer(lineone).append(" ").toString();
                }

                lineone += mandatoryStr;
            }

            String totalAmount = total.getText();
            linetwo = "Total " + totalAmount;
            // Trim to standards
            if(linetwo.length() > 20 ) {
                // Let the length to trim
                int excessAmount = linetwo.length() - 20;
                String mandatoryStr = " " + totalAmount;
                int amountToTrim = "Total".length() - excessAmount;
                linetwo = linetwo.substring(0, amountToTrim);
                linetwo += mandatoryStr;

            } else if(linetwo.length() < 20) {
                int amountToAdd = 20 - linetwo.length();
                String mandatoryStr = " " + totalAmount;
                linetwo = "Total";
                // Lets just add the spaces
                for(int i = 0; i < amountToAdd; i++) {
                    linetwo = new StringBuffer(linetwo).append(" ").toString();
                }

                linetwo += mandatoryStr;
            }

            ldg.updateDisplay(lineone + linetwo);
        } catch(Exception ex) {
            System.err.println(ex.getCause());
        }
    }