public void loadOrdersWithDate(Date date)
    {
        orderlistWithDate.clear();
        availableItems.clear();
        itemlistReserved.clear();
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        int h = 0;
        for (int j = -1; h < 2; j++)
        {
            if (j == 0)
            {
                j = 1;
            }
            if (j == 2)
            {
                j = 1;
                h = 3;
            }
            calendar.add(Calendar.DATE, j);

            for (int i = 0; i < orderlist.size(); i++)
            {
                if (orderlist.get(i).getState() != 2 && orderlist.get(i).getorderDate().equals(calendar.getTime()))
                {
                    orderlistWithDate.add(orderlist.get(i));
                }
            }
        }
        reservedItem();
        availableItems();


    }