private void filterTicktes() {

        filteredTickets = new ArrayList<>();

        switch (openFilter) {
            case 0: // Closed tickets
                for (Ticket t : tickets) {
                    if (!t.isOpen()) {
                        filteredTickets.add(t);
                    }
                }
                break;
            case 1: // Open tickets
                for (Ticket t : tickets) {
                    if (t.isOpen()) {
                        filteredTickets.add(t);
                    }
                }
                break;
            case 2: // All tickets
                for (Ticket t : tickets) {
                    filteredTickets.add(t);
                }
                break;
            default:
                filteredTickets = tickets;
                break;
        }
    }