private void passwordIfAdministrator() {
        if (cbAdministrator.isSelected()) {
            tfPassword.setEnabled(false);
            String pw = null;
            try {
                String query = "select losenord from administrator where aid=" + selectedAnstalld;
                pw = DB.fetchSingle(query);
            } catch (InfException e) {
                e.getMessage();
            }
            if (pw != null) {
                tfPassword.setText(pw);
            }
        }
    }