private void jListStatusListeMousePressed(java.awt.event.MouseEvent evt)//GEN-FIRST:event_jListStatusListeMousePressed
    {//GEN-HEADEREND:event_jListStatusListeMousePressed
        String ab = "";

        for (int i = 0; i < control.getOrderlist().size(); i++)
        {
            if (control.getOrderlist().get(i).getState() == 1)
            {
                ab = "ja\n";
            } else
            {
                if (control.getOrderlist().get(i).getState() == 2)
                {
                    ab = "udløbet\n";
                } else
                {
                    ab = "nej\n";
                }
            }
            if (control.getOrderlist().get(i).toString().equals(jListStatusListe.getSelectedValue()))
            {
                jTextOrdreInformationer.setText("Kunde ID: " + control.getOrderlist().get(i).getCustomer().getCustomerID() + "\n"
                        + "Depositum Dato: " + control.getOrderlist().get(i).getDepositumDate() + "\n"
                        + "Bestillings Dato: " + control.getOrderlist().get(i).getorderDate() + "\n"
                        + "Depositum modtaget: " + ab
                        + "Depositum beløb: " + control.getOrderlist().get(i).getDepositumPrice() + " kr\n"
                        + "Pris på ordre: " + control.getOrderlist().get(i).getDepositumPrice()*2 + " kr"
                        + control.getOrderlist().get(i).getItemlistString());
            }
        }
    }//GEN-LAST:event_jListStatusListeMousePressed