private void renderSchedule() {
        try {
            ArrayList<ScheduleInfo> info = new ArrayList<ScheduleInfo>();
            Staff stf = new Staff();
            stf.setId(Integer.valueOf(Controller.Instance().getLoggedIn().getId()));
            for (Flight f : Controller.Instance().getFlights()) {
                if (f.getPilot().getId() == stf.getId()) {
                    info.add(new ScheduleInfo(f, "Pilot", false));
                    info.add(new ScheduleInfo(f, "Pilot", true));
                }
                if (f.getCopilot().getId() == stf.getId()) {
                    info.add(new ScheduleInfo(f, "Copilot", false));
                    info.add(new ScheduleInfo(f, "Copilot", true));
                }
                if (f.findOtherPersonal(stf)) {
                    info.add(new ScheduleInfo(f, "Attendant", false));
                    info.add(new ScheduleInfo(f, "Attendant", true));
                }
                if (f.findAirmarshalls(stf)){
                    info.add(new ScheduleInfo(f, "Airmarshall", false));
                    info.add(new ScheduleInfo(f, "Airmarshall", true));
                }
            }
            
            if(!info.isEmpty()){
                GenericTableModel<ScheduleInfo> model = new GenericTableModel<ScheduleInfo>(info);
                tblSchedule.setModel(model);
            }else{
                tblSchedule.setVisible(false);
                lblMessage.setText("<html><b> No schedule available for \"" + Controller.Instance().getLoggedIn().getUsername() + "\"</b> </html>");
            }
        } catch (Exception ex) {
            
        }
    }