public void createGUIBasedOnAccessLevel(int accessLevel, JTabbedPane tabbedPane, Controller control) throws SQLException, IOException, ClassNotFoundException {

        // Admin
        if (accessLevel == 0) {
            tabbedPane.add("Hovedside", new Home(control));
            tabbedPane.add("Opgaveoprettelse", new CreateTaskPanel(control));
            tabbedPane.add("Opgavehåndtering", new TaskHandlingPanel(control));
            tabbedPane.setIconAt(0, new ImageIcon("Home16.gif"));
        } // User
        else {
            tabbedPane.add("Hovedside", new Home(control));
            tabbedPane.add("Opgaveoprettelse", new CreateTaskPanel(control));
            tabbedPane.add("Opgavehåndtering", new TaskHandlingPanel(control));
        }

    }