public LoginFrame() throws IOException {

        Image image = ImageIO.read(getClass().getResource("/ressources/ms-teknik-logo.jpg"));
        setIconImage(image);
        loginStatus = 0;

        initComponents();
        progressBar.setBackground(Color.BLUE);
        progressBar.setForeground(Color.BLUE);

        try {
            control = new Controller();

        } catch (ClassNotFoundException ex) {
            // Database driver could not be loaded
            setWarningMessage("Database driverne kunne ikke lokaliseres");

        } catch (SQLException ex) {
            // Connection to SystemDB could not be established
            setWarningMessage("Der kunne ikke oprettes forbindelse til systemdatabasen");

        } catch (IOException ex) {
            // Connection to SystemDB could not be established
            setWarningMessage("Der kunne ikke oprettes forbindelse til systemdatabasen");
        }

    }