private void selectedOrderSleeve1()
    {
        if(ord == null)
        {
            txtOrderName2.setText("");
            txtOrderId3.setText("");
            lblSleeves.setText("");
        }
        if(operator == null)
        {
            txtId.setText("");
            txtName.setText("");
            txtLastName.setText("");
        }
        else
        {
        txtOrderName2.setText(ord.getOrderName());
        //txtOrderId3.setText(String.valueOf(ord.getOrderId()));
        txtId.setText(String.valueOf(operator.getId()));
        txtName.setText(String.valueOf(operator.getFirstName()));
        txtLastName.setText(String.valueOf(operator.getLastName()));
        lblSleeves.setText(String.valueOf("Sleeves to be made " + ord.getConductedQuantity() + " / " + ord.getQuantity()));
    
        try
        {
//            txtHasCut1.setText(String.valueOf(managerSleeveLog.getQuantity(ord.getSleeve())));
            managerSleeve.addObserver(this);
            slmodel = new SleeveTableModel(managerSleeve.getSleevesByOrder(ord));
            tblSleeve2.setModel(slmodel);
            managerOrder.addObserver(this);
            managerStockItem.addObserver(this);
            
            tblSleeve2.getSelectionModel().addListSelectionListener(new ListSelectionListener()
            {
                @Override
                public void valueChanged(ListSelectionEvent es)
                {
                    int selectedRow = tblSleeve2.getSelectedRow();
                    if (selectedRow == -1)
                    {
                        return;
                    }
                    sleeve = slmodel.getEventsByRow(selectedRow);
                    if (sleeve.getStartTime() != null)
                    {
                        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/YYYY HH:mm:ss");
                        txtStartTime17.setText(sdf.format(sleeve.getStartTime().getTime()));
                        txtEndTime17.setText(sdf.format(sleeve.getEndTime().getTime()));
                        
                        btnPause17.setEnabled(true);
                        btnFinish18.setEnabled(true);
                        btnStart17.setEnabled(true);
                        
                        String status = "Finished";
                        if (ord.getConductedQuantity() == ord.getQuantity() && ord.getStatus().equalsIgnoreCase(status))
                        {
                            btnPause17.setEnabled(false);
                            btnFinish18.setEnabled(false);
                            btnStart17.setEnabled(false);
                        }
                        else if (ord.getConductedQuantity() == ord.getQuantity())
                        {
                            btnPause17.setEnabled(false);
                            btnFinish18.setEnabled(true);
                            btnStart17.setEnabled(false);
                        }
                    }
                    else
                    {
                        btnStart17.setEnabled(true);
                    }
                }
            });
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
    }