public String getUsername() { if (pnlCredentials == null) return null; return pnlCredentials.getUserName(); }