@Override
				public boolean verify(JComponent input) {
					setStatus("");
					String username = userField.getText().trim();
					if (username.length() == 0) {
						setStatus("");
						return true;
					}
					Matcher userMatch = USERNAME_PATTERN.matcher(username);
					if (!userMatch.matches()) {
						setStatus("Unsupported database user name");
						return false;
					}
					return true;
				}
Dialog for entering new BSim database server definition
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/dialog/CreateBsimServerInfoDialog.java